| {{ __('SL') }}. | {{ __('Supplier Name') }} | {{ __('Phone') }} | {{ __('Type') }} | {{ __('Total Purchases') }} | {{ __('Amount') }} | {{ __('Paid') }} | {{ __('Total Purchase Due') }} |
|---|---|---|---|---|---|---|---|
| {{ $suppliers->firstItem() + $loop->index }} | {{ $supplier->name }} | {{ $supplier->phone }} | {{ $supplier->type }} | {{ $supplier->purchases?->count() }} | {{ currency_format($supplier->purchases?->sum('totalAmount'), currency: business_currency()) }} | {{ currency_format($supplier->purchases?->sum('paidAmount'), currency: business_currency()) }} | {{ currency_format($supplier->purchases?->sum('dueAmount'), currency: business_currency()) }} |
| {{__('Total')}} | {{ $suppliers->sum(fn($supplier) => $supplier->purchases?->count() ) }} | {{ currency_format($totalAmount, currency: business_currency()) }} | {{ currency_format($totalPaid, currency: business_currency()) }} | {{ currency_format($totalDue, currency: business_currency()) }} |