Audit Log for Record ID: {{ $auditLog->id }}
Action: {{ ucfirst($auditLog->action) }}
Date: {{ \Carbon\Carbon::parse($auditLog->created_at)->format('Y-m-d H:i:s') }}
User: {{ $auditLog->user->name ?? 'Unknown' }}
Table Name: {{ $auditLog->table_name }}
Changes
@php $changes = json_decode($auditLog->changes, true); @endphp @if($changes && count($changes) > 0)-
@foreach($changes as $field => $change)
-
{{ ucfirst($field) }}:
{!! $change['old'] ?? 'N/A' !!}{!! $change['new'] ?? 'N/A' !!}
@endforeach
No changes recorded.
@endif