@extends('layouts.app') @section('content')
Back to Students
{{-- SECTION 1: ID CARD --}}

🕌 STUDENT ADMISSION VOUCHER

{{ $latestPromotion->schoolSession->session_name ?? 'N/A' }}
@if($latestPromotion->student->photo) Student Photo @else
@endif
Student Name: {{ $latestPromotion->student->first_name ?? 'N/A' }} {{ $latestPromotion->student->last_name ?? '' }}
ID Card Number: {{ $latestPromotion->id_card_number }}
Email: {{ $latestPromotion->student->email ?? 'N/A' }}
Phone: {{ $latestPromotion->student->phone ?? 'N/A' }}
Class
{{ $latestPromotion->schoolClass->class_name ?? 'N/A' }}
Section
{{ $latestPromotion->section->section_name ?? 'N/A' }}
Session
{{ $latestPromotion->schoolSession->session_name ?? 'N/A' }}
{{-- SECTION 2: PAYMENT DETAILS --}}

💰 PAYMENT DETAILS

@if($paymentProfile)
Admission Voucher:
{{ $paymentProfile->admission_voucher_number ?? 'Not issued' }}
Payment Type
@if($paymentProfile->payment_type == 0) 🎁 {{ \App\Models\StudentPaymentProfile::PAYMENT_TYPES[$paymentProfile->payment_type] }} @elseif($paymentProfile->payment_type == 1) 📅 {{ \App\Models\StudentPaymentProfile::PAYMENT_TYPES[$paymentProfile->payment_type] }} @else 📅 {{ \App\Models\StudentPaymentProfile::PAYMENT_TYPES[$paymentProfile->payment_type] }} @endif
Admission Status
@if($paymentProfile->admission_fee_paid) ✅ Paid @else ❌ Unpaid @endif
@if($paymentProfile->payment_type > 0) @endif
Description Amount (PKR)
Admission Fee
One-time enrollment fee
{{ number_format($paymentProfile->admission_fee_amount, 2) }}
{{ $paymentProfile->payment_type == 1 ? 'Monthly' : 'Annual' }} Fee
{{ $paymentProfile->payment_type == 1 ? 'Recurring monthly payment' : 'Yearly payment' }}
{{ number_format($paymentProfile->recurring_fee_amount, 2) }}
Total Amount Owed {{ number_format($paymentProfile->total_amount_owed, 2) }}
Amount Paid {{ number_format($paymentProfile->total_amount_paid, 2) }}
Balance Remaining {{ number_format($paymentProfile->balance_remaining, 2) }}
Note: Please keep this voucher for your records.
Issued: {{ now()->format('d M Y, h:i A') }}
@else
No Payment Profile Found

Please contact administration to set up payment details.

@endif

This is a computer-generated document. No signature required.

For queries, please contact the administration office.

@endsection