// resources/views/reports/sales_report_pdf.blade.php Sales Report
Sales Report
Period: {{ \Carbon\Carbon::parse($from_date)->format('d-m-Y') }} to {{ \Carbon\Carbon::parse($to_date)->format('d-m-Y') }}
@if($report_type == 'report_order_tab') @foreach($data as $key => $item) @endforeach
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) }}
@endif @if($report_type == 'counter_wise_tab') @foreach($data as $key => $item) @endforeach
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) }}
@endif @if($report_type == 'date_wise_tab') @foreach($data as $key => $item) @endforeach
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) }}
@endif @if($report_type == 'date_counter_wise_tab') @foreach($data as $key => $item) @endforeach
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) }}
@endif