@if (request('from_date') || request('to_date')) Period: {{ request('from_date') ?: 'Start' }} to {{ request('to_date') ?: 'Today' }} @endif @if (request('user_id')) | User: {{ optional($users->firstWhere('id', (int) request('user_id')))->name ?: 'Selected User' }} @endif
| Sr # | Sale # | VRM | Date | Sub Total | Initial Deposit | Discount | VAT | Total |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | Customer Name: {{ $invoice->name ?: 'N/A' }} | Customer Email: {{ $invoice->email ?: 'N/A' }} | Customer Phone: {{ $invoice->phone ?: 'N/A' }} | |||||
| {{ $invoice->sale_number }} | {{ $invoice->vrm ?: 'N/A' }} | {{ optional($invoice->date)->format('d-M-Y') }} | {{ number_format((float) $invoice->sub_total, 2) }} | {{ number_format((float) $invoice->initial_deposit, 2) }} | {{ number_format((float) $invoice->discount, 2) }} | {{ number_format((float) $invoice->vat, 2) }} | {{ number_format((float) $invoice->total, 2) }} | |
| {{ $loop->iteration }} | {{ $detail->part?->name ?: 'N/A' }} | {{ $detail->description ?: 'N/A' }} | {{ $detail->qty ?: 0 }} | {{ number_format((float) $detail->amount, 2) }} | {{ number_format((float) $detail->total_amount, 2) }} | |||
| No parts found for this invoice. | ||||||||
| Sold By: {{ $invoice->createdByUser?->name ?: 'N/A' }} | Bank: {{ $invoice->bank?->name ?: 'N/A' }} | Sort Code: {{ $invoice->bank?->sort_code ?: 'N/A' }} | Account #: {{ $invoice->bank?->account_number ?: 'N/A' }} | |||||
| No sale report data found for the selected filters. | ||||||||