Total Invoices
{{ $payments->count() }}
Total Revenue
${{ number_format($payments->where('status', 'paid')->sum('amount'), 2) }}
Paid Invoices
{{ $payments->where('status', 'paid')->count() }}
Pending Invoices
{{ $payments->where('status', 'pending')->count() }}
| Invoice ID | School (Tenant) | Description | Amount | Due Date | Status | Actions |
|---|---|---|---|---|---|---|
| #{{ $payment->id }} | {{ $payment->school_name }} | {{ $payment->description }} | ${{ number_format($payment->amount, 2) }} | {{ $payment->due_date ? date('Y-m-d', strtotime($payment->due_date)) : 'N/A' }} |
|
@if($payment->status == 'pending') @else Paid @endif |