@extends('layouts.admin')
@php
$entity = $record ?? null;
$title = $entity?->invoice_number ?? ('Invoice #'.($entity->id ?? ''));
$status = is_object($entity?->invoice_status) ? $entity->invoice_status : null;
$studentName = $entity?->student ? trim($entity->student->fullName()) : '—';
@endphp
@section('title', $title)
@section('content')
| Description | Fee head | Qty | Unit | Total |
|---|---|---|---|---|
| {{ $item->description ?? '—' }} | {{ $item->feeHead?->name ?? '—' }} | {{ number_format((float) $item->quantity, 2) }} | {{ number_format((float) $item->unit_amount, 2) }} | {{ number_format((float) $item->line_total, 2) }} |
| No line items. | ||||
Created {{ $entity?->created_at?->format('d M Y') ?? '—' }}