@extends('layouts.admin') @php $entity = $record ?? null; $title = method_exists($entity, 'fullName') ? $entity->fullName() : (data_get($entity, 'name') ?? data_get($entity, 'title') ?? data_get($entity, 'code') ?? data_get($entity, 'invoice_number') ?? data_get($entity, 'receipt_number') ?? data_get($entity, 'transaction_reference') ?? ('Fee Categories #' . ($entity->id ?? ''))); @endphp @section('title', $title) @section('content') @if(\Illuminate\Support\Facades\Route::has('finance.fee-categories.print') && $entity) Print @endif @if(\Illuminate\Support\Facades\Route::has('finance.fee-categories.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') ?? '—' }}

@endsection