@extends('layouts.portal') @section('title', 'Fees') @section('page-header')
Invoices and payment history for {{ $child->full_name }}
{{ $invoice->feeStructure?->category?->name ?? 'School fees' }} {{ $invoice->invoice_no }}
{{ $invoice->academicYear?->name }}{{ $invoice->term?->name ? ' · ' . $invoice->term->name : '' }} · Due {{ $invoice->due_date?->format('M j, Y') ?? '-' }}
₦{{ number_format((float) $invoice->amount - (float) $invoice->discount, 2) }}
@if ($invoice->total_paid > 0 && $invoice->status !== 'paid')Paid ₦{{ number_format((float) $invoice->total_paid, 2) }}
@endif₦{{ number_format((float) $payment->amount, 2) }}
{{ $payment->payment_date?->format('M j, Y') ?? $payment->created_at->format('M j, Y') }}
{{ $payment->payment_method ? ucwords(str_replace('_', ' ', $payment->payment_method)) : 'Payment' }} @if ($payment->receipt_no) · {{ $payment->receipt_no }} @endif @if ($payment->status === 'pending_verification') · awaiting confirmation @elseif ($payment->status === 'rejected') · rejected @endif
@if (in_array($payment->status, ['confirmed','verified','reconciled']) && $payment->receipt_no) View receipt @endif{{ $account->bank_name }}
{{ $account->maskedNumber() }}
Account name: {{ $account->account_name }}@if($account->is_default) · preferred@endif