@if($patient->outstanding_balance > 0)
    <div class="alert alert-danger py-2 d-flex flex-wrap justify-content-between align-items-center gap-2">
        <span>💳 {{ __('Outstanding balance') }}: <strong dir="ltr">{{ number_format($patient->outstanding_balance) }} IQD</strong></span>
        @can('invoices.view')
            <a class="btn btn-sm btn-outline-danger" href="{{ route('tenant.invoices.index', ['q' => $patient->phone]) }}">{{ __('View invoices') }}</a>
        @endcan
    </div>
@endif
