 }}) 
                                🕌 STUDENT ADMISSION VOUCHER
{{ $latestPromotion->schoolSession->session_name ?? 'N/A' }}
                                        @if($latestPromotion->student->photo)
                                             @else
                                            
                                                
                                            
                                        @endif
                                        @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' }}
                                             }}) 
                                💰 PAYMENT DETAILS
                            @if($paymentProfile)
                                
                                
                                    
                                
                                
                                    
                                        
                                            
                                    
                                    
                                        
                                            
                                    
                                
                                
                                
                                    
                                        
                                
                                
                                    
                                        
                                
                            @else
                                
                                    
                                    
                            @endif
                        
                    
                                        
                                        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
                                            
                                        | 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') }}
                                            
                                        
                                    No Payment Profile Found
Please contact administration to set up payment details.
This is a computer-generated document. No signature required.
For queries, please contact the administration office.