@extends('layouts.app') @section('content')
| Voucher | Student | Class | Payment Type | Total Owed | Paid | Balance | Status | Actions | 
|---|---|---|---|---|---|---|---|---|
| {{ $payment->admission_voucher_number ?? 'N/A' }} | {{ $payment->student->first_name ?? 'N/A' }} {{ $payment->student->last_name ?? '' }} | {{ $payment->promotion->schoolClass->class_name ?? 'N/A' }} | @if($payment->payment_type == 0) 🎁 Free @elseif($payment->payment_type == 1) 📅 Monthly @else 📅 Annual @endif | {{ number_format($payment->total_amount_owed, 2) }} | {{ number_format($payment->total_amount_paid, 2) }} | {{ number_format($payment->balance_remaining, 2) }} | @if($payment->balance_remaining <= 0) ✅ Paid @elseif($payment->total_amount_paid > 0) ⚠️ Partial @else ❌ Unpaid @endif | |
| No payment records found@if(request()->hasAny(['start_date', 'end_date', 'payment_type', 'payment_status', 'search'])) Try adjusting your filters@endif | ||||||||