@extends('layouts.app') @section('title', 'Fee Management') @section('page-title', 'Fee Management') @section('content')
Total Invoices
{{ $stats['total_invoices'] }}
Total Billed
₹{{ number_format($stats['total_amount'], 0) }}
Collected
₹{{ number_format($stats['paid_amount'], 0) }}
Pending
{{ $stats['pending_count'] }}
Overdue
{{ $stats['overdue_count'] }}
| Name | Class | Amount | Frequency | Due Date | Invoices |
|---|---|---|---|---|---|
| {{ $s->name }} | {{ $s->class_?->full_name ?? 'All Classes' }} | ₹{{ number_format($s->amount, 2) }} | {{ str_replace('_', ' ', $s->frequency) }} | {{ $s->due_date->format('d M Y') }} | {{ $s->invoices->count() }} |
| No fee structures yet. Create one to get started. | |||||
| Invoice # | Student | Fee Type | Total | Paid | Balance | Due | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $inv->invoice_number }} |
{{ $inv->student?->name ?? 'Deleted' }}
{{ $inv->student?->studentProfile?->class_?->full_name ?? '' }} |
{{ $inv->feeStructure?->name ?? '—' }} | ₹{{ number_format($inv->total, 2) }} | ₹{{ number_format($inv->paid_amount, 2) }} | ₹{{ number_format($inv->balance, 2) }} | {{ $inv->due_date->format('d M Y') }} | @php $statusColors = [ 'paid' => 'bg-green-100 text-green-700', 'partial' => 'bg-blue-100 text-blue-700', 'pending' => 'bg-yellow-100 text-yellow-700', 'overdue' => 'bg-red-100 text-red-700', ]; @endphp {{ ucfirst($inv->status) }} | |
| No invoices found. | ||||||||