@extends('layouts.school') @section('title', 'Invoices') @section('header', 'Invoices') @section('content')
| Invoice # | Student | Period | Amount | Paid | Balance | Status |
|---|---|---|---|---|---|---|
| {{ $inv->invoice_no }} | {{ $inv->student?->full_name ?? '—' }}{{ optional($inv->student?->class)->name }} | {{ $inv->academicYear?->name }}{{ $inv->term?->name ? ' · ' . $inv->term->name : '' }} | ₦{{ number_format($inv->amount, 0) }}@if((float)$inv->discount > 0)−{{ number_format($inv->discount, 0) }} disc.@endif | ₦{{ number_format($inv->total_paid, 0) }} | ₦{{ number_format(max(0, $bal), 0) }} | {{ ucfirst($inv->status) }} |
| No invoices yet. | ||||||