@extends('layouts.app') @section('title','Open Balance Report') @section('content')
Money owed to the hospital right now — patient-owed plus insurance claims still pending settlement.
{{-- ═══ CANONICAL A/R CARDS ═══════════════════════════════════════════════ These three cards are the canonical A/R figures Dashboard also shows. "Total A/R" = "Patient-Owed" + "Insurance-Owed". --}}Total A/R
KES {{ number_format($totalAr) }}
Patient-Owed
KES {{ number_format($arPatient) }}
Insurance Pending
KES {{ number_format($arInsurer) }}
The gross figure includes written-off invoices, cancelled-visit balances, and insurance invoices that have been pseudo-paid at the cashier. These are not actually collectable. The canonical A/R figure above is what finance should track.
| Patient | MRN | Visit | Payer | Billed | Paid | Balance |
|---|---|---|---|---|---|---|
| {{ $inv->patient->full_name ?? '' }} | {{ $inv->patient->mrn ?? '' }} | {{ $inv->visit->visit_number ?? '' }} | {{ $inv->payment_mode ?: '—' }} | {{ number_format($inv->total_amount) }} | {{ number_format($inv->amount_paid) }} | {{ number_format($inv->balance) }} |
| No patient-owed open balances right now. | ||||||