{{ __('app.portal.fees.title') }}

{{ __('app.portal.fees.desc') }}

@if ($students->isEmpty()) @else @if ($students->count() > 1) @foreach ($students as $option) @endforeach @endif @if ($student)

{{ $student->localizedName() }}

{{ $student->student_uid }} · {{ $student->academicClass?->localizedName() ?? __('app.students.no_class') }} @if ($student->section) · {{ $student->section->localizedName() }} @endif · {{ $student->academicYear?->name }}

{{ __('app.portal.fees.statement') }}

{{ __('app.portal.fees.billed') }}

{{ config('brand.currency.symbol') }} {{ number_format((float) $totals['billed'], 2) }}

{{ __('app.portal.fees.paid') }}

{{ config('brand.currency.symbol') }} {{ number_format((float) $totals['paid'], 2) }}

{{ __('app.portal.fees.outstanding') }}

{{ config('brand.currency.symbol') }} {{ number_format((float) $totals['outstanding'], 2) }}

{{ __('app.portal.fees.invoices') }}

{{ $totals['invoices'] }}

@if ($invoices->isEmpty()) @else
@foreach ($invoices as $invoice) @endforeach
{{ __('app.fees.fields.invoice_no') }} {{ __('app.fees.fields.kind') }} {{ __('app.fees.fields.issue_date') }} {{ __('app.fees.fields.due_date') }} {{ __('app.fees.fields.total') }} {{ __('app.fees.fields.paid') }} {{ __('app.fees.fields.balance') }} {{ __('app.fees.fields.status') }} {{ __('app.portal.common.actions') }}
{{ $invoice->invoice_no }} {{ $invoice->kind->label() }} {{ $invoice->issue_date?->translatedFormat('d M Y') }} {{ $invoice->due_date?->translatedFormat('d M Y') }} {{ number_format((float) $invoice->total, 2) }} {{ number_format((float) $invoice->paid_total, 2) }} {{ number_format((float) $invoice->balance, 2) }} {{ $invoice->status->label() }} {{ __('app.actions.print') }}
@endif
@if ($payments->isEmpty()) @else
@foreach ($payments as $payment) @endforeach
{{ __('app.fees.fields.receipt_no') }} {{ __('app.fees.fields.paid_at') }} {{ __('app.portal.fees.invoice') }} {{ __('app.fees.fields.method') }} {{ __('app.fees.fields.amount') }} {{ __('app.portal.common.actions') }}
{{ $payment->receipt_no }} {{ $payment->paid_at?->translatedFormat('d M Y') }} {{ $payment->invoice?->invoice_no ?? '—' }} {{ $payment->method->label() }} {{ number_format((float) $payment->amount, 2) }} {{ __('app.portal.fees.print_receipt') }}
@endif
@endif @endif