@extends('institution.partials.print-layout') @php $entity = $record ?? null; $printTitle = method_exists($entity, 'fullName') ? $entity->fullName() : (data_get($entity, 'name') ?? data_get($entity, 'title') ?? data_get($entity, 'code') ?? 'Student Documents'); @endphp @section('print-title', $printTitle) @section('print-content')
| {{ ucwords(str_replace('_', ' ', $key)) }} | @php $v = data_get($entity, $key); @endphp {{ is_object($v) && method_exists($v, 'label') ? $v->label() : (is_object($v) && isset($v->value) ? $v->value : ($v ?? '—')) }} |
|---|