@extends('layouts.portal') @section('title', 'Payment Receipt') @section('page-header')

Payment Receipt

{{ $payment->receipt_no ?? 'Receipt' }}

← Back to fees
@endsection @section('content')

{{ $school?->name }}

Official Fee Receipt

Receipt No
{{ $payment->receipt_no ?? '—' }}
Date
{{ $payment->payment_date?->format('M j, Y') ?? $payment->created_at->format('M j, Y') }}
Student
{{ $child->full_name }}
Invoice
{{ $payment->invoice?->invoice_no ?? '—' }}
@if ($payment->invoice?->feeStructure?->category)
Fee Category
{{ $payment->invoice->feeStructure->category->name }}
@endif
Method
{{ ucwords(str_replace('_', ' ', (string) $payment->payment_method)) }}
@if ($payment->transaction_ref)
Reference
{{ $payment->transaction_ref }}
@endif @if ($serviceCharge && (float) ($serviceCharge['base_amount'] ?? 0) > 0)
School amount
₦{{ number_format((float) $serviceCharge['base_amount'], 2) }}
Pishon service charge @if ($serviceCharge['charge_to'] === 'school') · absorbed by school @endif
₦{{ number_format((float) $serviceCharge['charge_amount'], 2) }}
@if ($serviceCharge['charge_to'] === 'split' && (float) $serviceCharge['parent_share'] > 0)
Parent share of charge
₦{{ number_format((float) $serviceCharge['parent_share'], 2) }}
@endif
Total charged to parent
₦{{ number_format((float) $serviceCharge['total_charged'], 2) }}
@endif
Amount Paid to School
₦{{ number_format((float) $payment->amount, 2) }}
@if ($receiptFooter)

{{ $receiptFooter }}

@endif
@endsection