@extends('layouts.app') @section('title', 'Children Fees') @section('page-title', 'Children Fee Details') @section('content')
@forelse($invoices ?? [] as $childName => $childInvoices)

{{ $childName }}

@foreach($childInvoices as $invoice) @endforeach
Invoice # Fee Type Amount Due Date Status
{{ $invoice->invoice_number }} {{ $invoice->feeStructure->name ?? 'N/A' }} ₹{{ number_format($invoice->total, 2) }} {{ $invoice->due_date->format('d M Y') }} {{ ucfirst($invoice->status) }}
@empty
No fee records found.
@endforelse
@endsection