add column to user csv list

This commit is contained in:
omair saleh
2021-11-26 18:32:04 +08:00
parent 5e0469e2bf
commit 8066dd3b18
@@ -47,7 +47,7 @@ class ExportsCustomers implements FromQuery, WithHeadingRow, WithMapping
return [
$company->reference,
$company->name,
$company->employees()->first()->name,
$company->employees()->first() ? $company->employees()->first()->phone : '',
$company->contacts()->first() ? $company->contacts()->first()->phone : '',
$company->type === CompanyType::COMPANY_BUSINESS ? 'Company' : 'individual',
count($company->bookings),