add column to user csv list

This commit is contained in:
omair saleh
2021-11-26 18:21:31 +08:00
parent 5cdc6b67b0
commit 8ac00929eb
@@ -47,6 +47,8 @@ class ExportsCustomers implements FromQuery, WithHeadingRow, WithMapping
return [
$company->reference,
$company->name,
$company->employees->first()->name,
$company->contacts->first()->phone,
$company->type === CompanyType::COMPANY_BUSINESS ? 'Company' : 'individual',
count($company->bookings),
$company->bookings()->sum('fix_amount'),