@include('reports.pdf-style')
|
Customer
{{ $customer->name }}
|
Shop
{{ $customer->shop_name ?: '-' }}
|
Phone
{{ $customer->phone ?: '-' }}
|
Current Balance Due
Rs. {{ number_format($customer->balance, 2) }}
|
| Date | Description | Order Amount | Payment Received | Running Balance |
|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($entry['date'])->format('d M Y') }} | {{ $entry['description'] }} | {{ $entry['debit'] > 0 ? 'Rs. ' . number_format($entry['debit'], 2) : '' }} | {{ $entry['credit'] > 0 ? 'Rs. ' . number_format($entry['credit'], 2) : '' }} | Rs. {{ number_format($entry['balance'], 2) }} |
| No transactions in this period | ||||
| TOTAL | Rs. {{ number_format(array_sum(array_column($ledger, 'debit')), 2) }} | Rs. {{ number_format(array_sum(array_column($ledger, 'credit')), 2) }} | Rs. {{ number_format(!empty($ledger) ? end($ledger)['balance'] : 0, 2) }} | |