@extends('layouts.app') @section('content')
@include('layouts.left-menu')

Payment Profile Details

@include('session-messages')
Student Information

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' }}

Payment Summary
Payment Type

@if($profile->payment_type == 0) Free @elseif($profile->payment_type == 1) Monthly @else Annual @endif

Admission Fee

{{ number_format($profile->admission_fee_amount, 2) }} PKR

@if($profile->admission_fee_paid) Paid @else Unpaid @endif

Recurring Fee

{{ number_format($profile->recurring_fee_amount, 2) }} PKR

@if($profile->payment_type == 1) per month @elseif($profile->payment_type == 2) per year @else N/A @endif


Total Owed:

{{ number_format($profile->total_amount_owed, 2) }} PKR

Total Paid:

{{ number_format($profile->total_amount_paid, 2) }} PKR

Balance Remaining:

{{ number_format($profile->balance_remaining, 2) }} PKR

Status:

@if($profile->balance_remaining <= 0)
Fully Paid
@elseif($profile->total_amount_paid > 0)
Partial Payment
@else
Unpaid
@endif
Transaction History
@if(auth()->user()->role == 'admin' && $profile->balance_remaining > 0) Record Payment @endif
@if($profile->transactions && $profile->transactions->count() > 0)
@foreach($profile->transactions as $transaction) @endforeach
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 ?? '-' }}
@else

No transactions recorded yet.

@endif
@include('layouts.footer')
@endsection