{{-- Header --}}
{{ config('app.name', 'School Management System') }}
Official Payment Receipt
{{ config('school.address', '123 Main St, City') }} | {{ config('school.phone', '+255 000 000 000') }}
Receipt No: #{{ str_pad($payment->id, 5, '0', STR_PAD_LEFT) }}
Date: {{ $payment->payment_date->format('d M, Y H:i') }}
{{-- Student & Payment Info --}}
Student Information
| Name |
{{ $payment->student->first_name }} {{ $payment->student->last_name }} |
| Admission No |
{{ $payment->student->admission_no ?? 'N/A' }} |
| Class |
{{ $payment->student->schoolClass->name ?? 'N/A' }} |
Payment Details
| Bill |
{{ $payment->studentBill->bill->title ?? 'N/A' }} |
| Amount Paid |
TZS {{ number_format($payment->amount, 2) }} |
| Payment Method |
{{ ucfirst(str_replace('_', ' ', $payment->payment_method)) ?? 'N/A' }} |
| Reference |
{{ $payment->reference ?? '-' }} |
| Received By |
{{ $payment->user->name ?? 'System' }} |
{{-- Balance Summary --}}
Balance Summary
| Total Bill (TZS) |
Total Paid (TZS) |
Remaining Balance (TZS) |
Status |
| {{ number_format($payment->studentBill->total_amount, 2) }} |
{{ number_format($payment->studentBill->amount_paid, 2) }} |
{{ number_format($payment->studentBill->balance, 2) }} |
{{ ucfirst($payment->studentBill->status) }} |
@if($payment->note)
Note: {{ $payment->note }}
@endif
{{-- Footer Buttons --}}
Thank you for your payment!