Generated: {{ isset($generatedAt) ? $generatedAt : date('Y-m-d H:i') }}
@if(isset($dateFrom) && isset($dateTo) && $dateFrom && $dateTo && $dateFrom !== $dateTo) Period: {{ $dateFrom }} to {{ $dateTo }} @elseif(isset($dateFrom) && $dateFrom) Date: {{ $dateFrom }} @endif
| Total Collection | Cash | Card | Other | Transactions |
|---|---|---|---|---|
| {{ isset($summary['total_collection']) ? number_format($summary['total_collection'], 2) : '0.00' }} | {{ isset($summary['cash']) ? number_format($summary['cash'], 2) : '0.00' }} | {{ isset($summary['card']) ? number_format($summary['card'], 2) : '0.00' }} | {{ isset($summary['other']) ? number_format($summary['other'], 2) : '0.00' }} | {{ isset($summary['transactions']) ? $summary['transactions'] : 0 }} |
| Pay Date | Invoice | Doctor | Patient | Procedures | Gross | Discount | Net | Paid | Method | Cashier |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $r['pay_date'] ?? '' }} | {{ $r['invoice_number'] ?? '' }} | {{ $r['doctor'] ?? '' }} | {{ $r['patient_name'] ?? '' }} | {{ $r['procedures'] ?? '' }} | {{ number_format($r['gross'] ?? 0, 2) }} | {{ number_format($r['all_discount'] ?? 0, 2) }} | {{ number_format($r['net_total'] ?? 0, 2) }} | {{ number_format($r['paid_amount'] ?? 0, 2) }} | {{ $r['payment_method'] ?? '' }} | {{ $r['cashier'] ?? '' }} |
| PAGE TOTAL: | {{ number_format($total, 2) }} | |||||||||
No transactions found for the selected period.
@endif {{-- Payment Methods Summary --}} @if(isset($paymentBreakdown) && is_array($paymentBreakdown) && count($paymentBreakdown) > 0)| Payment Method | Amount |
|---|---|
| {{ strtolower($method) == "advance" ? "Advance" : $method }} | {{ number_format($amount, 2) }} |
| Doctor/Nurse | Amount |
|---|---|
| {{ $doctor }} | {{ number_format($amount, 2) }} |
| User / Cashier | Amount |
|---|---|
| {{ $user }} | {{ number_format($amount, 2) }} |
| Collection from Invoice Payments (Non-Advance) | {{ number_format($totals['total_without_advance'] ?? 0, 2) }} |
| Advances Received | {{ number_format($totals['total_advance'] ?? 0, 2) }} |
| TOTAL COLLECTION INFLOW | {{ number_format(($totals['total_without_advance'] ?? 0) + ($totals['total_advance'] ?? 0), 2) }} |
| Paid Out for Refunds | -{{ number_format($totals['total_refund'] ?? 0, 2) }} |
| Total Advance Redeem | -{{ number_format($totals['total_advance_used'] ?? 0, 2) }} |
| Date | Invoice | Doctor | Patient | Method | Amount | Cashier |
|---|---|---|---|---|---|---|
| {{ $r['pay_date'] ?? '' }} | {{ $r['invoice_number'] ?? '' }} | {{ $r['doctor'] ?? '' }} | {{ $r['patient_name'] ?? '' }} | {{ $r['payment_method'] ?? '' }} | {{ number_format($r['amount'] ?? 0, 2) }} | {{ $r['cashier'] ?? '' }} |
| TOTAL: | {{ number_format($refundTotal, 2) }} | |||||
| Date | Receipt | Patient | Method | Amount | Cashier |
|---|---|---|---|---|---|
| {{ $a['pay_date'] ?? '' }} | {{ $a['advance_id'] ?? '' }} | {{ $a['patient_name'] ?? '' }} | {{ $a['payment_method'] ?? '' }} | {{ number_format($a['amount'] ?? 0, 2) }} | {{ $a['cashier'] ?? '' }} |
| TOTAL: | {{ number_format($advanceTotal, 2) }} | ||||