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

Audit Log Details

@if ($auditLogs->count() > 0)
Changes
@foreach ($auditLogs as $auditLog) @php $changes = json_decode($auditLog->changes, true); // Decode JSON string to array @endphp @if (is_array($changes)) @endif @endforeach
Table Name Details Action User User
{{ $auditLog->table_name }} {{ getTitleByTableAndId($auditLog->table_name, $auditLog->record_id) }} {{ $auditLog->action }} {{ $auditLog->user->name ?? 'Unknown' }} {{ $auditLog->created_at }} View Details
{{ $auditLogs->links() }}
@else

Audit log not found.

@endif
@include('admin.partials.modal') @endsection @push('script') @endpush