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) }}

Schools with Outstanding Balance
@forelse($debtors as $debtor) @empty @endforelse
School ID School Name Status Pending Invoices Total Balance Actions
{{ $debtor->id }} {{ $debtor->school_name ?? 'N/A' }} {{ $debtor->is_active ? 'Active' : 'Disabled' }} {{ $debtor->invoices_count }} ${{ number_format($debtor->balance, 2) }}
View Invoices
@csrf
No schools currently have outstanding balances.
@push('scripts') @endpush