{{-- Content-only partial (no @extends). Use inside @section('content') blocks. --}} @php $entity = $record ?? null; $rp = $routePrefix ?? 'examination.records'; $showTitle = data_get($entity, 'name') ?? data_get($entity, 'code') ?? data_get($entity, 'title') ?? (($resourceLabel ?? 'Record') . ' #' . ($entity->id ?? '')); @endphp @if(\Illuminate\Support\Facades\Route::has($rp . '.print') && $entity) Print @endif @if(\Illuminate\Support\Facades\Route::has($rp . '.edit') && $entity) Edit @endif @include('institution.partials.flash')
@foreach(($entity?->getAttributes() ?? []) as $key => $value) @if(!in_array($key, ['id','uuid','created_by','updated_by','deleted_at','created_at','updated_at'], true))
{{ 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 ?? '—')) }}
@endif @endforeach

Created {{ $entity?->created_at?->format('d M Y') ?? '—' }}