{{ $companyAddress }}
@if(request('from_date') || request('to_date'))
Period: {{ request('from_date') ?? '...' }} to {{ request('to_date') ?? '...' }}
@endif
@if(request('customer_id'))
Customer: {{ App\Models\Customer::find(request('customer_id'))->name ?? '' }}
@endif
@if(request('payment_method'))
Payment Method: {{ ucfirst(request('payment_method')) }}
@endif
Generated: {{ date('d-m-Y h:i A') }}
| Date | Customer | Branch | Shipment No | Invoice No | Description | Method | Amount |
|---|---|---|---|---|---|---|---|
| {{ date('d-m-Y', strtotime($payment->date)) }} | {{ $payment->customer->name ?? 'N/A' }} | {{ $payment->branch->name ?? '-' }} | {{ $payment->shipment_number ?: ($payment->sale ? $payment->sale->items->pluck('shipment_number')->filter()->unique()->implode(', ') : '-') }} | {{ $invoiceNo }} | {{ $payment->description }} | {{ $method }} | {{ number_format($payment->credit, 2) }} |
| Total Received: | {{ number_format($total, 2) }} | ||||||