Logo @if(!$is_pdf) Back @endif
{{ $company->company_name }}
{{ $company->address }}, {{ $company->city }}, {{ $company->state }}
Phone: {{ $company->phone1 }}
GST NO: {{ $company->gst_no }}

Today's Collection

@if(!$is_pdf)
Reset
@endif
@php $grand_total = 0; @endphp @foreach($grouped_data as $payment_method => $customers) @foreach($customers as $customer_name => $customer_data) @php // Group by order_id to get rowspan $orderGroups = collect($customer_data['orders'])->groupBy('order_id'); @endphp @foreach($orderGroups as $order_id => $orders) @php $rowspan = $orders->count(); $first = true; @endphp @foreach($orders as $order) @if($first) @endif @if($first) @endif @php $first = false; @endphp @endforeach @endforeach @php $grand_total += $customer_data['total_amount']; @endphp @endforeach @endforeach
Order No Customer Name Amount Transaction Date Rcpt No Payment Mode Rcpt Type Remarks
{{ $payment_method }}
{{ $customer_name }} (Total: {{ number_format($customer_data['total_amount'], 2) }})
{{ $order_id }} {{ $customer_name }}{{ number_format(floatval(str_replace(',', '', $order['amount'])), 2) }} {{ date('d-m-Y', strtotime($order['transaction_date'] ?? '-')) }}{{ $order['receipt_id'] }} @if(!empty($order['bank'])) Bank: {{ $order['bank'] }}
Ac No: {{ $order['account_number'] ?? '-' }}
IFSC: {{ $order['ifsc_code'] ?? '-' }}
@endif @if(!empty($order['reference_id'])) Txn ID: {{ $order['reference_id'] }}
@endif @if(!empty($order['cheq_no'])) Cheque No: {{ $order['cheq_no'] }} @endif @if(empty($order['bank']) && empty($order['reference_id']) && empty($order['cheq_no'])) - @endif
{{ $order['rcpt_type'] }} {{ $order['remark'] ?? '-' }}
Grand Total {{ number_format($grand_total, 2) }}

@if(!$is_pdf) Download @endif