Total Revenue

${{ number_format($totalRevenue, 2) }}

Active Schools

{{ $activeTenantsList }}

Unpaid Invoices

{{ $pendingPaymentsCount }}

Invoice History
@forelse($invoices as $invoice) @empty @endforelse
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) ${{ number_format($surplus, 2) }} @else @endif {{ $invoice->due_date->format('M d, Y') }} @php $badgeClass = match($invoice->status) { 'paid' => 'success', 'pending' => 'warning', 'overdue' => 'danger', default => 'secondary' }; @endphp {{ strtoupper($invoice->status) }} @if($invoice->status == 'pending')
@csrf
@else Finalized @endif
No billing history found.
{{ $invoices->links() }}