// resources/views/reports/sales_report_pdf.blade.php
| No. | Order ID | Sale Date | Cash Amount | Online Amount | Total Amount |
|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item['id'] }} | {{ \Carbon\Carbon::parse($item['saledate'])->format('d-m-Y') }} | {{ number_format($item['cash_amount'], 2) }} | {{ number_format($item['online_amount'], 2) }} | {{ number_format($item['netamount'], 2) }} |
| Total: | {{ number_format($totals['totalCashAmount'], 2) }} | {{ number_format($totals['totalOnlineAmount'], 2) }} | {{ number_format($totals['totalNetAmount'], 2) }} | ||
| No. | Counter | Total Orders | Cash Amount | Online Amount | Total Amount |
|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item['counter_name'] }} | {{ $item['total_orders'] }} | {{ number_format($item['total_cash_amount'], 2) }} | {{ number_format($item['total_online_amount'], 2) }} | {{ number_format($item['total_cash_amount'] + $item['total_online_amount'], 2) }} |
| Total: | {{ number_format($totals['totalCashAmount'], 2) }} | {{ number_format($totals['totalOnlineAmount'], 2) }} | {{ number_format($totals['totalNetAmount'], 2) }} | ||
| No. | Date | Cash Amount | Online Amount | Total Amount |
|---|---|---|---|---|
| {{ $key + 1 }} | {{ \Carbon\Carbon::parse($item['order_date'])->format('d-m-Y') }} | {{ number_format($item['cash'], 2) }} | {{ number_format($item['online'], 2) }} | {{ number_format($item['total'], 2) }} |
| Total: | {{ number_format($totals['totalCashAmount'], 2) }} | {{ number_format($totals['totalOnlineAmount'], 2) }} | {{ number_format($totals['totalNetAmount'], 2) }} | |
| No. | Counter | Date | Cash Amount | Online Amount | Total Amount |
|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $item['name'] }} | {{ \Carbon\Carbon::parse($item['order_date'])->format('d-m-Y') }} | {{ number_format($item['total_cash_amount'], 2) }} | {{ number_format($item['total_online_amount'], 2) }} | {{ number_format($item['total'], 2) }} |
| Total: | {{ number_format($totals['totalCashAmount'], 2) }} | {{ number_format($totals['totalOnlineAmount'], 2) }} | {{ number_format($totals['totalNetAmount'], 2) }} | ||