{{-- TAB 4: Payouts (Admin / Finance) --}}
Total Payable
KES {{ number_format($summary['total_payable'], 0) }}
Total Paid (all time)
KES {{ number_format($summary['total_paid'], 0) }}
Outstanding Balance
KES {{ number_format($summary['outstanding'], 0) }}
Export outstanding: Excel PDF CSV
{{-- Outstanding by rider --}}

Outstanding by rider

@forelse ($byRider as $row) @php $p = $row->member?->patient; $name = $p ? trim($p->first_name.' '.$p->last_name) : '—'; @endphp @empty @endforelse
MKR No. Rider Referrals Amount Due Actions
{{ $row->mkr_number }} @if ($row->member) {{ $name }} @else {{ $name }} @endif {{ $row->referral_count }} KES {{ number_format($row->amount_due, 0) }} @if ($row->member) Statement @endif
No outstanding payouts.
{{-- Recent payouts --}}

Recent payouts

@forelse ($payouts as $po) @php $p = $po->member?->patient; $name = $p ? trim($p->first_name.' '.$p->last_name) : '—'; @endphp @empty @endforelse
Payout ID MKR No. Rider Period Count Amount Method Ref Date Status
{{ $po->payout_code }} {{ $po->member?->member_number }} {{ $name }} {{ $po->period_start?->format('d M') }} – {{ $po->period_end?->format('d M Y') }} {{ $po->referral_count }} KES {{ number_format($po->amount_paid, 0) }} {{ $po->payment_method }} {{ $po->reference_number ?: '—' }} {{ $po->payment_date?->format('d M Y') }} @include('corporate.referrals.partials.status-badge', ['status' => $po->status])
No payouts recorded yet.
{{-- Pay modal --}}