| @if($hasLogo) |
{{ config('app.name') }}Fee Report |
From: {{ \Illuminate\Support\Carbon::parse($from)->format('d M Y') }} To: {{ \Illuminate\Support\Carbon::parse($to)->format('d M Y') }} Printed: {{ now()->format('d M Y') }} |
| Serial | Patient | Visit Date | Type | Patient Fee | Received | Remaining | Discount | Balance | Reference | City | Area |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $r->serial }} | {{ $r->name }} | {{ \Illuminate\Support\Carbon::parse($r->date)->format('d M Y') }} | {{ $r->type }} | {{ number_format($r->patient_fee, 2) }} | {{ number_format($r->received_fee, 2) }} | {{ number_format($r->remaining_fee, 2) }} | {{ number_format($r->discount_fee, 2) }} | {{ ucfirst($r->balance_type ?? '-') }} | {{ $r->reference_name ?? '-' }} | {{ $r->city ?? '-' }} | {{ $r->area ?? '-' }} |
| No fee records in this range. | |||||||||||
| Total ({{ $summary->count }} patients / visits) | {{ number_format($summary->total_fee, 2) }} | {{ number_format($summary->total_received, 2) }} | {{ number_format($summary->total_remaining, 2) }} | {{ number_format($summary->total_discount, 2) }} | |||||||
| Payment Date | Patient | Amount | Notes |
|---|---|---|---|
| {{ $pay->payment_date->format('d M Y') }} | {{ $pay->patient->name ?? '-' }} | {{ number_format($pay->payment_amount, 2) }} | {{ $pay->notes ?? '-' }} |
| Total Received Later | {{ number_format($payments->sum('payment_amount'), 2) }} | ||