@extends('layouts.modern') @section('page-title', $dataType->name . ' Details') @section('breadcrumb') @if(isset($isManageDataRoute) && $isManageDataRoute) @else @endif @endsection @section('action-buttons')
@if(isset($isManageDataRoute) && $isManageDataRoute) Edit Entry @else Edit Entry @endif
@if(isset($isManageDataRoute) && $isManageDataRoute) @else @endif Back to List @endsection @section('content')
@if($dataType->icon) @endif

{{ $dataType->name }} #{{ $record->id }}

Created: {{ \Carbon\Carbon::parse($record->created_at)->format('M j, Y \a\t g:i A') }} @if($record->updated_at && $record->updated_at !== $record->created_at) Updated: {{ \Carbon\Carbon::parse($record->updated_at)->diffForHumans() }} @endif
{{ $record->id }}
Entry ID
@foreach($sections as $section) @if($section->fields->count() > 0)
{{ $section->name }}
@if($section->collapsible) @endif
@if($section->description) {{ $section->description }} @endif
@foreach($section->fields as $field) @php $value = $record->{$field->name} ?? null; @endphp
@include('data-management.dynamic-forms.partials.display-field', ['field' => $field, 'value' => $value])
@endforeach
@endif @endforeach
Record Information
ID:
#{{ $record->id }}
Created:
{{ \Carbon\Carbon::parse($record->created_at)->format('M j, Y') }}
{{ \Carbon\Carbon::parse($record->created_at)->diffForHumans() }}
@if($record->updated_at && $record->updated_at !== $record->created_at)
Updated:
{{ \Carbon\Carbon::parse($record->updated_at)->format('M j, Y') }}
{{ \Carbon\Carbon::parse($record->updated_at)->diffForHumans() }}
@endif @if(isset($record->created_by))
Created By:
User #{{ $record->created_by }}
@endif @if(isset($record->updated_by) && $record->updated_by !== $record->created_by)
Updated By:
User #{{ $record->updated_by }}
@endif
Quick Actions
Edit This Entry

Data Type Info
Name:
{{ $dataType->name }}
@if($dataType->description)
Description:
{{ $dataType->description }}
@endif
Fields:
{{ $sections->sum(fn($section) => $section->fields->count()) }} fields
Sections:
{{ $sections->count() }} sections
@endsection @push('scripts') @endpush