@extends('layouts.app') @section('title', 'Receipt '.$payment->receipt_no) @section('content')

Receipt {{ $payment->receipt_no }}

{{ \Carbon\Carbon::parse($payment->paid_on)->format('d M Y') }} · {{ $payment->mode }} · {{ $student?->full_name }}
PDF
@csrf
@if($payment->status !== 'cancelled')
@csrf
@endif
@include('finance._nav')
@php($school = \App\Models\Setting::school())

{{ $school }}

{{ \App\Models\Setting::get('school_address', '') }}
{{ \App\Models\Setting::get('school_phone', '') }} {{ \App\Models\Setting::get('school_email', '') }}
{{ ucfirst($payment->status) }}
OFFICIAL RECEIPT
{{ $payment->receipt_no }}
Received from
{{ $student?->full_name }}
{{ $student?->admission_no }} · {{ $student?->class_label }}
Payment details
Date: {{ \Carbon\Carbon::parse($payment->paid_on)->format('d M Y') }}
Mode: {{ $payment->mode }}
Reference: {{ $payment->reference ?: '—' }}
@forelse($items as $item) @empty @endforelse
DescriptionAmountDiscount
{{ $item->description }} {{ money($item->amount) }} {{ money($item->discount) }}
No fee items on this invoice.
Invoice total{{ money($invoice->total ?? 0) }}
Discount{{ money($invoice->discount ?? 0) }}
Amount paid to date{{ money($invoice->paid ?? 0) }}
Balance{{ money($invoice->balance ?? 0) }}
This payment{{ money($payment->amount) }}
Received by: {{ $payment->received_by ? (\App\Models\User::find($payment->received_by)?->name ?? 'System') : 'System' }}
{{ \App\Models\Setting::get('receipt_footer', 'Thank you for your payment.') }}

Learner

{{ $student?->full_name }}
{{ $student?->admission_no }}
Class{{ $student?->class_label }}
Term{{ $payment->term }} / {{ $payment->year }}
Category{{ ucfirst($student?->category ?? '—') }}
Full statement

Notes

{{ $payment->notes ?: 'No notes recorded on this receipt.' }}

@endsection