@extends('layouts.app') @section('title', 'My Fees') @section('page-title', 'Fee Details') @section('content')
Total Due
₹{{ number_format($invoices->whereIn('status', ['pending','overdue'])->sum('total'), 2) }}
Total Paid
₹{{ number_format($invoices->where('status', 'paid')->sum('total'), 2) }}
Invoices
{{ $invoices->count() }}
| Invoice # | Fee Type | Amount | Due Date | Status | Actions |
|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->feeStructure->name }} | ₹{{ number_format($invoice->total, 2) }} | {{ $invoice->due_date->format('d M Y') }} | {{ ucfirst($invoice->status) }} | @if($invoice->status !== 'paid') @endif @foreach($invoice->payments->where('status', 'success') as $payment) Receipt @endforeach |