{{-- resources/views/admin/records/show.blade.php --}} @extends('admin.master') @section('title', __('Records')) @section('styles') @endsection @section('content')

{{ __('Records') }}

{{ __('Name') }}

{{ old('name', $record->admin->name) }}

{{ __('Email') }}

{{ old('email', $record->admin->email) }}

{{ __('Phone') }}

{{ old('phone', $record->admin->phone) }}

@php $changes = json_decode($record->changes, true); @endphp @if($changes && is_array($changes))
@foreach($changes as $field => $change)
{{ ucfirst($field) }}

{{ __('Old') }} : {{ $change['old'] ?? '-' }}

{{ __('New') }} : {{ $change['new'] ?? '-' }}

@endforeach
@else
{{ __('No changes available.') }}
@endif
@endsection @section('script') @endsection