Schools in Debt
{{ $debtors->count() }}
Total Outstanding
${{ number_format($debtors->sum('balance'), 2) }}
Avg Debt per School
${{ number_format($debtors->count() > 0 ? $debtors->sum('balance') / $debtors->count() : 0, 2) }}
| School ID | School Name | Status | Pending Invoices | Total Balance | Actions |
|---|---|---|---|---|---|
| {{ $debtor->id }} | {{ $debtor->school_name ?? 'N/A' }} |
|
{{ $debtor->invoices_count }} | ${{ number_format($debtor->balance, 2) }} | |
| No schools currently have outstanding balances. | |||||