@if($fee->status === 'partial')
PARTIAL
@endif {{-- ── Header ── --}}
{{ $academy->name }}
@if($academy->address){{ $academy->address }}
@endif @php $phone = $academy->id_card_contact ?: $academy->phone; $email = $academy->id_card_email ?: $academy->email; @endphp @if($phone)Tel: {{ $phone }}@endif @if($phone && $email)  |  @endif @if($email){{ $email }}@endif
RECEIPT
No: {{ $receiptNo ?? $fee->receipt_number ?? 'N/A' }}
{{ \Carbon\Carbon::parse(isset($paidDate) ? $paidDate : $fee->paid_date)->format('d M Y') }}
{{-- ── Status ── --}}
@if($fee->status === 'paid') ✓  PAID IN FULL @else ◐  PARTIAL PAYMENT @endif
{{-- ── Student / Parent ── --}}
Student Details
Student
{{ $student->name }}
Parent / Guardian
{{ $parent?->name ?? '—' }}
Class
{{ $student->class?->name ?? '—' }}
Roll Number
{{ $student->roll_number ?? '—' }}
{{-- ── Payment Info ── --}}
Payment Details
Fee Month
{{ \Carbon\Carbon::createFromDate($fee->year, $fee->month, 1)->format('F Y') }}
Payment Method
{{ ucfirst($fee->payment_method ?? '—') }}
Payment Date
{{ \Carbon\Carbon::parse($fee->paid_date)->format('d M Y') }}
Due Date
{{ $fee->due_date ? \Carbon\Carbon::parse($fee->due_date)->format('d M Y') : '—' }}
{{-- ── Amount Breakdown ── --}}
Amount Breakdown
@if(isset($receipt) && ($fee->paid_amount - $receipt->amount) > 0) @endif @if($fee->amount - $fee->paid_amount > 0) @endif
Total Fee {{ $currency }} {{ number_format($fee->amount, 0) }}
{{ isset($receipt) ? 'This Payment' : 'Amount Paid' }} {{ $currency }} {{ number_format(isset($receipt) ? $receipt->amount : $fee->paid_amount, 0) }}
Previously Paid {{ $currency }} {{ number_format($fee->paid_amount - $receipt->amount, 0) }}
Balance Remaining {{ $currency }} {{ number_format($fee->amount - $fee->paid_amount, 0) }}
{{-- ── Notes ── --}} @if($fee->notes)
Notes
{{ $fee->notes }}
@endif {{-- ── Footer ── --}}