@if($payment_profile->total_amount_paid > 0)
                                    {{-- Read-Only View --}}
                                    
                                         
                                        Payment settings cannot be changed because this student has already made payments 
                                        (Rs. {{number_format($payment_profile->total_amount_paid, 2)}} paid).
                                        To record more payments, use the 
Payment Recording page.
                                    
 
                                    
                                    
                                        
                                            
                                            
                                                {{$payment_profile->getPaymentTypeName()}}
                                            
                                         
                                        
                                            
                                            
                                                Rs. {{number_format($payment_profile->admission_fee_amount, 2)}}
                                            
                                         
                                        @if($payment_profile->payment_type != 0)
                                        
                                            
                                            
                                                Rs. {{number_format($payment_profile->recurring_fee_amount, 2)}}
                                            
                                         
                                        @endif
                                        
                                            
                                                
                                                    
                                                        Total Owed
                                                        Rs. {{number_format($payment_profile->total_amount_owed, 2)}}
                                                     
                                                    
                                                        Total Paid
                                                        Rs. {{number_format($payment_profile->total_amount_paid, 2)}}
                                                     
                                                    
                                                        Balance Remaining
                                                        Rs. {{number_format($payment_profile->balance_remaining, 2)}}
                                                     
                                                 
                                             
                                         
                                     
                                @else
                                    {{-- Editable View --}}
                                    
                                    
                                    
                                    
                                         
                                        No payments made yet. You can update payment settings for this student.
                                    
                                    
                                    
                                @endif