@extends('layouts.app') @section('title', 'Children Fees') @section('page-title', 'Children Fee Details') @section('content')
Total Due
₹{{ number_format($invoices->whereIn('status', ['pending','overdue','partial'])->sum('balance'), 2) }}
Total Paid
₹{{ number_format($invoices->sum('paid_amount'), 2) }}
Total Invoices
{{ $invoices->count() }}
| Child | Fee Type | Total | Balance | Due | Status | Actions |
|---|---|---|---|---|---|---|
|
{{ $invoice->student?->name }}
{{ $invoice->student?->studentProfile?->class_?->full_name }} |
{{ $invoice->feeStructure->name }} | ₹{{ number_format($invoice->total, 2) }} | ₹{{ number_format($invoice->balance, 2) }} | {{ $invoice->due_date->format('d M Y') }} | @php $sc = ['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($invoice->status) }} | |
| No invoices found. | ||||||