@foreach ($customers as $customer) @if ($customer->type == 'Retailer') @else @endif @endforeach @if ($customers->count() > 0) @endif
{{ __('SL') }}. {{ __('Customer Name') }} {{ __('Phone') }} {{ __('Email') }} {{ __('Type') }} {{ __('Total Sales') }} {{ __('Total Amount') }}
{{ $loop->iteration }} {{ $customer->name }} {{ $customer->phone }} {{ $customer->email }}{{ __('Customer') }}{{ $customer->type }}{{ $customer->sales?->count() }} {{ currency_format($customer->sales?->sum('totalAmount'), currency: business_currency()) }}