@extends('institution.partials.print-layout') @php $entity = $record ?? null; $printTitle = $entity?->invoice_number ?? 'Invoice'; $studentName = $entity?->student ? trim($entity->student->fullName()) : '—'; @endphp @section('print-title', $printTitle) @section('print-content')
| Student | {{ $studentName }} |
|---|---|
| Issue date | {{ $entity?->issue_date?->format('d M Y') ?? '—' }} |
| Due date | {{ $entity?->due_date?->format('d M Y') ?? '—' }} |
| Status | {{ is_object($entity?->invoice_status) ? $entity->invoice_status->label() : ($entity->invoice_status ?? '—') }} |
| Subtotal | {{ number_format((float) ($entity->subtotal ?? 0), 2) }} {{ $entity->currency ?? '' }} |
| Total | {{ number_format((float) ($entity->total_amount ?? 0), 2) }} {{ $entity->currency ?? '' }} |
| Paid | {{ number_format((float) ($entity->amount_paid ?? 0), 2) }} |
| Balance | {{ number_format((float) ($entity->balance ?? 0), 2) }} |
| Description | Qty | Unit | Total |
|---|---|---|---|
| {{ $item->description ?? '—' }} | {{ number_format((float) $item->quantity, 2) }} | {{ number_format((float) $item->unit_amount, 2) }} | {{ number_format((float) $item->line_total, 2) }} |