{{-- Patient Balance Summary Widget ────────────────────────────── Renders a snapshot of outstanding balances for the patient — split into cash-owed (patient must pay) and insurance-pending (payer owes). Includable from any page that has a $patient in scope. Usage: @include('partials._patient-balance-summary', ['patient' => $patient]) Optional parameters: 'compact' => bool — true (default) shows a one-line strip; false shows the full breakdown with invoice list 'show_link' => bool — true (default) includes a "View all bills" deep-link into the billing module filtered to this patient Inline styling is used throughout (not Tailwind utility classes) because it renders reliably against the Tailwind CDN loading order — no flash of unstyled content even on slow networks. --}} @php $compact = isset($compact) ? (bool) $compact : true; $showLink = isset($showLink) ? (bool) $showLink : true; $bal = $patient->balance_summary; @endphp @if($bal['total'] <= 0) {{-- ── Empty state: cheerful all-clear ─────────────────────────────── --}}