@extends('admin.admin_master') @section('content')

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
@else

No changes recorded.

@endif
@endsection