From Date: {{ $from_date }}
To Date: {{ $to_date }}
Total Buyers: {{ $buyers->count() }}
Generated On: {{ date('d-m-Y H:i:s') }}
| SL No | Buyer ID | Buyer Name | Mobile | Status | Total Orders | Total Spent | Created Date |
|---|---|---|---|---|---|---|---|
| {{ $buyer->sl_no }} | #{{ $buyer->id }} | {{ $buyer->name_en ?? 'N/A' }} | @if($buyer->country_code) {{ $buyer->country_code }}-{{ $buyer->mobile ?? 'N/A' }} @else {{ $buyer->mobile ?? 'N/A' }} @endif | {{ $statusLabels[$buyer->status] ?? 'Unknown' }} | {{ $buyer->total_orders ?? 0 }} | {{ number_format($buyer->total_spent ?? 0, 2) }} | {{ $buyer->created_at ? date('d-m-Y', strtotime($buyer->created_at)) : 'N/A' }} |
| No buyers found for the selected date range. | |||||||
| Grand Totals: | {{ $buyers->sum('total_orders') }} | {{ number_format($buyers->sum('total_spent'), 2) }} | |||||