Total Revenue
${{ number_format($totalRevenue, 2) }}
Active Schools
{{ $activeTenantsList }}
Unpaid Invoices
{{ $pendingPaymentsCount }}
| Invoice ID | School | Amount | Surplus Balance | Due Date | Status | Actions |
|---|---|---|---|---|---|---|
| #{{ $invoice->id }} | {{ $invoice->tenant_id }} | ${{ number_format($invoice->amount, 2) }} |
@php $surplus = $invoice->tenant->balance ?? 0; @endphp
@if($surplus > 0)
|
{{ $invoice->due_date->format('M d, Y') }} |
@php
$badgeClass = match($invoice->status) {
'paid' => 'success',
'pending' => 'warning',
'overdue' => 'danger',
default => 'secondary'
};
@endphp
|
@if($invoice->status == 'pending') @else Finalized @endif |
| No billing history found. | ||||||