Report Type: {{ ucfirst($type) }} Basis | Generated: {{ date('d-m-Y H:i') }}
@if($type === 'customer')| # | Customer Name | Mobile | Total Invoices | Last Booking Date | Total Billed (Rs) | Total Collected (Rs) | Balance Due (Rs) | Status |
|---|---|---|---|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $row->customer_name }} | {{ $row->mobile }} | {{ $row->invoice_count }} | {{ date('d-m-Y', strtotime($row->last_date)) }} | {{ number_format($row->total_billed, 2, '.', '') }} | {{ number_format($row->total_collected, 2, '.', '') }} | {{ number_format($row->total_balance, 2, '.', '') }} | {{ $row->status }} |
| Grand Total | {{ number_format($summary['total_billed'], 2, '.', '') }} | {{ number_format($summary['total_collected'], 2, '.', '') }} | {{ number_format($summary['total_balance'], 2, '.', '') }} | |||||
| # | Invoice / Booking No | Date | Customer Name | Mobile | Job Name | Payment Mode | Billed Amount (Rs) | Collected Amount (Rs) | Balance Due (Rs) | Payment Status |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $inv->booking_no }} | {{ date('d-m-Y', strtotime($inv->booking_date)) }} | {{ $inv->customer_name }} | {{ $inv->mobile }} | {{ $inv->job_name }} | {{ $inv->payment_mode }} | {{ number_format($inv->grand_total, 2, '.', '') }} | {{ number_format($inv->collected, 2, '.', '') }} | {{ number_format($inv->balance, 2, '.', '') }} | {{ $inv->payment_status }} |
| Grand Total | {{ number_format($summary['total_billed'], 2, '.', '') }} | {{ number_format($summary['total_collected'], 2, '.', '') }} | {{ number_format($summary['total_balance'], 2, '.', '') }} | |||||||