@extends('layouts.app') @section('title', 'My Fees') @section('page-title', 'Fee Details') @section('content')
Total Due
₹{{ number_format($invoices->whereIn('status', ['pending','overdue','partial'])->sum('balance'), 2) }}
Total Paid
₹{{ number_format($invoices->sum('paid_amount'), 2) }}
Invoices
{{ $invoices->count() }}
| Invoice # | Fee Type | Amount | Paid | Balance | Due Date | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->feeStructure->name }} | ₹{{ number_format($invoice->total, 2) }} | ₹{{ number_format($invoice->paid_amount, 2) }} | ₹{{ number_format($invoice->balance, 2) }} | {{ $invoice->due_date->format('d M Y') }} | @php $sc = [ 'paid' => 'bg-green-100 text-green-700', 'partial' => 'bg-blue-100 text-blue-700', 'pending' => 'bg-yellow-100 text-yellow-700', 'overdue' => 'bg-red-100 text-red-700', ]; @endphp {{ ucfirst($invoice->status) }} |
@if($invoice->balance > 0)
@endif
@foreach($invoice->payments->where('status', 'success') as $payment)
Receipt
@endforeach
|
|
No fee invoices found. |
|||||||