@php($money=fn($value)=>$snapshot['currency'].' '.number_format((float)$value*$snapshot['rate'],$snapshot['decimals']))
{{ $snapshot['business'] }}
{{ implode(' | ',array_filter([$snapshot['address'],$snapshot['phone'],$snapshot['email']])) }}
{{ $number }}
{{ $snapshot['branch'] }} · {{ $snapshot['cashier'] }}
From {{ \Carbon\Carbon::parse($snapshot['from'])->format('d/m/Y h:i:s a') }} to {{ \Carbon\Carbon::parse($snapshot['to'])->format('d/m/Y h:i:s a') }}
| Summary | Amount |
| Total Sales | {{ $money($snapshot['total_sales']) }} |
| Payments for This Period’s Sales | {{ $money($snapshot['current_collected']) }} |
| Older Invoice Payments | {{ $money($snapshot['older_collected']) }} |
| Total Collected from Sales / Invoices | {{ $money($snapshot['collected']) }} |
| Unpaid Invoices | {{ $money($snapshot['pending']) }} |
| Expenses | {{ $money($snapshot['expenses']??0) }} |
@if(count($counts))
Reconciliation
| Payment Method | Opening | Receipts | Other In | Paid Out | Expected | Actual | Difference | Next Opening |
@foreach($counts as $row)| {{ $row['name'] }} | @foreach(['opening','receipts','other_in','out','expected','actual','difference','next_opening'] as $field){{ $money($row[$field]) }} | @endforeach
@endforeach
@endif
Payment Methods
| Payment Method | Receipts | Other In | Paid Out |
@foreach($snapshot['methods'] as $row)| {{ $row['name'] }} | {{ $money($row['receipts']) }} | {{ $money($row['other_in']) }} | {{ $money($row['out']) }} |
@endforeach
Older Invoice Payments
| Date | Invoice | Customer | Method | Reference | Received By | Amount |
@forelse($snapshot['older_payments'] as $payment)| {{ $payment['date'] }} | {{ $payment['invoice'] }} | {{ $payment['customer'] }} | {{ $payment['method'] }} | {{ $payment['reference'] }} | {{ $payment['receiver'] }} | {{ $money($payment['amount']) }} |
@empty| No older invoice payments in this period. |
@endforelse
Items Sold
| Invoice | Date | Customer | Salesperson | Product | Qty | S.Price | Total |
@forelse($snapshot['items'] as $item)| {{ $item['invoice'] }} | {{ $item['date'] }} | {{ $item['customer'] }} | {{ $item['salesperson'] ?? '-' }} | {{ $item['product'] }} | {{ number_format($item['quantity'],2) }} | {{ $money($item['price']) }} | {{ $money($item['total']) }} |
@empty| No items sold in this period. |
@endforelse