@extends('layouts.app') @section('content')
Name: {{ $profile->student->first_name }} {{ $profile->student->last_name }}
Email: {{ $profile->student->email ?? 'N/A' }}
Phone: {{ $profile->student->phone ?? 'N/A' }}
Class: {{ $profile->promotion->schoolClass->class_name ?? 'N/A' }}
Section: {{ $profile->promotion->section->section_name ?? 'N/A' }}
Session: {{ $profile->schoolSession->session_name ?? 'N/A' }}
@if($profile->admission_fee_paid) Paid @else Unpaid @endif
@if($profile->payment_type == 1) per month @elseif($profile->payment_type == 2) per year @else N/A @endif
Total Owed:
Total Paid:
Balance Remaining:
Status:
@if($profile->balance_remaining <= 0)| Receipt # | Date | Type | Amount | Method | Received By | Remarks | 
|---|---|---|---|---|---|---|
| {{ $transaction->transaction_number }} | {{ $transaction->transaction_date->format('d M Y') }} | @if($transaction->transaction_type == 1) Admission @elseif($transaction->transaction_type == 2) Monthly @elseif($transaction->transaction_type == 3) Annual @endif | {{ number_format($transaction->amount_paid, 2) }} PKR | @if($transaction->payment_method == 1) Cash @elseif($transaction->payment_method == 2) Cheque @elseif($transaction->payment_method == 3) Bank Transfer @else Online @endif | {{ $transaction->receivedBy->first_name ?? 'N/A' }} | {{ $transaction->remarks ?? '-' }} | 
No transactions recorded yet.