@extends('institution.partials.print-layout') @php $entity = $record ?? null; $printTitle = $entity?->receipt_number ?? 'Receipt'; $studentName = $entity?->student ? trim($entity->student->fullName()) : '—'; @endphp @section('print-title', $printTitle) @section('print-content')
| Student | {{ $studentName }} |
|---|---|
| Amount | {{ number_format((float) ($entity->amount ?? 0), 2) }} {{ $entity->currency ?? '' }} |
| Issued | {{ $entity?->issued_at?->format('d M Y H:i') ?? '—' }} |
| Status | {{ is_object($entity?->receipt_status) ? $entity->receipt_status->label() : ($entity->receipt_status ?? '—') }} |
| Payment ref | {{ $entity?->payment?->transaction_reference ?? '—' }} |
| QR token | {{ $entity->qr_token ?? '—' }} |