@extends('layouts.app') @section('title', $invoice->invoice_no) @section('crumbs') Dashboard/Invoices/{{ $invoice->invoice_no }} @endsection @section('content')
{{ $invoice->student?->full_name ?? '—' }} · {{ $invoice->student?->admission_no }} · Issued {{ $invoice->issue_date?->format('d M Y') }} · Due {{ $invoice->due_date?->format('d M Y') }} {{ ucfirst($invoice->status) }}
| Description | Amount |
|---|---|
|
{{ $item->description }}
@if ($item->feeStructure)
{{ $item->feeStructure->feeCategory?->name ?? 'Fee structure' }}
@endif
|
GH₵ {{ number_format($item->amount, 2) }} |
| No items on this invoice yet. | |
| Payment | Date | Method | Amount | Reference | Received by |
|---|---|---|---|---|---|
| {{ $payment->payment_no }} | {{ $payment->paid_at?->format('d M Y H:i') }} | {{ ['cash' => 'Cash', 'mobile_money' => 'Mobile money', 'bank_transfer' => 'Bank transfer', 'card' => 'Card', 'cheque' => 'Cheque', 'other' => 'Other'][$payment->method] ?? ucfirst($payment->method) }} | GH₵ {{ number_format($payment->amount, 2) }} | {{ $payment->reference ?? '—' }} | {{ $payment->receivedBy?->full_name ?? '—' }} |
| No payments recorded against this invoice. | |||||
| Subtotal | GH₵ {{ number_format($invoice->subtotal, 2) }} |
|---|---|
| Discount | GH₵ {{ number_format($invoice->discount, 2) }} |
| Total | GH₵ {{ number_format($invoice->total, 2) }} |
| Amount paid | GH₵ {{ number_format($invoice->amount_paid, 2) }} |
| Balance | GH₵ {{ number_format($invoice->balance, 2) }} |