add column to user csv list

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