@extends('layouts.school') @section('title', 'Invoices') @section('header', 'Invoices') @section('content')
⚡ Generate Bulk Invoices + Create Invoice
@forelse($invoices as $inv) @php $bal = round((float) $inv->amount - (float) $inv->discount - (float) $inv->total_paid, 2); @endphp @empty @endforelse
Invoice #StudentPeriodAmountPaidBalanceStatus
{{ $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.
{{ $invoices->withQueryString()->links() }}
@endsection