{{ \Carbon\Carbon::parse($start_date)->format('d/m/Y') }} | {{ \Carbon\Carbon::parse($end_date)->format('d/m/Y') }} | @if ($staff != '') @php $staffUser = \App\Models\User::where('id', $staff)->first(); @endphp{{ $staffUser->name }} | @elseAll Staff | @endif
Date | Invoice # | Customer | Taxable Amount | Discount | Tax Amount | Gross Total | @if (!$staff)Staff | @endif
---|---|---|---|---|---|---|---|
{{ Carbon\Carbon::parse($item->date)->format('d/m/Y') }} | #{{ $item->invoice_number }} | [{{ $item->customer_file_number ?? '' }}] {{ $item->customer_name ?? '' }} | {{ getFormattedCurrency($item->taxable_amount) }} | {{ getFormattedCurrency($item->discount) }} | {{ getFormattedCurrency($item->tax_amount) }} | {{ getFormattedCurrency($item->total) }} | @if (!$staff){{ $item->salesman->name ?? '' }} | @endif
Total Invoices: {{ $invoices->count() }} | Total Sales: {{ getFormattedCurrency($invoices->sum('total') ?? 0) }} | Total Discount: {{ getFormattedCurrency($invoices->sum('discount')) }} | Total Tax: {{ getFormattedCurrency($invoices->sum('tax_amount')) }} |