@extends('layouts.app') @section('title', 'My Children Fees | Institution Axis') @section('sidebar-menu') @endsection @section('breadcrumb') Home / Fees & Finance @endsection @section('content')

Financial Overview

Track school fees and payment history for all your children.

TOTAL OUTSTANDING

KES {{ number_format($totalOutstanding, 2) }}

@if($invoices->isNotEmpty())
Pending Invoices
@foreach($invoices->where('status', '!=', 'paid') as $invoice)
Term {{ $invoice->term }} {{ $invoice->academic_year }}
Due: {{ date('M d, Y', strtotime($invoice->due_date)) }}
{{ $invoice->student->fullName() }}

{{ $invoice->student->schoolClass->name }}

Amount Billed: KES {{ number_format($invoice->total_amount, 2) }}
Paid: KES {{ number_format($invoice->paid_amount, 2) }}

Balance Due: KES {{ number_format($invoice->balance(), 2) }}
@endforeach
@endif
Payment History
@forelse($payments as $payment) @empty @endforelse
Date Child Method Reference Amount (KES)
{{ date('d M, Y', strtotime($payment->payment_date)) }} {{ $payment->student->fullName() }} {{ str_replace('_', ' ', $payment->payment_method) }} {{ $payment->reference_number }} {{ number_format($payment->amount, 2) }}
No payment records found.
@endsection