@include('admin.header') @section('title', 'Audit Log Details')
Audit Log Details
Back to Logs
Basic Information
@if($auditLog->user_agent) @endif
Log ID: #{{ $auditLog->id }}
Action: @php $actionColors = [ 'created' => 'success', 'updated' => 'info', 'deleted' => 'danger', 'login' => 'primary', 'logout' => 'warning' ]; $color = $actionColors[$auditLog->action] ?? 'secondary'; @endphp {{ ucfirst($auditLog->action) }}
Module: {{ $auditLog->module }}
Timestamp: {{ $auditLog->created_at->format('F d, Y') }}
{{ $auditLog->created_at->format('h:i:s A') }}
IP Address: {{ $auditLog->ip_address }}
User Agent: {{ $auditLog->user_agent }}
User Information
@if($auditLog->admin->profile_image) Profile @else
@endif
{{ $auditLog->admin->name }}

{{ $auditLog->admin->email }}

User ID: {{ $auditLog->admin->id }}
User Roles:
@foreach($auditLog->admin->roles as $role) {{ $role->name }} @endforeach
Description

{{ $auditLog->description }}

@if($auditLog->old_values || $auditLog->new_values)
Data Changes @if($auditLog->old_values && $auditLog->new_values) Updated Data @elseif($auditLog->old_values && !$auditLog->new_values) Deleted Data @elseif(!$auditLog->old_values && $auditLog->new_values) Created Data @endif
@if($auditLog->old_values)
Old Values
{{ json_encode($auditLog->old_values, JSON_PRETTY_PRINT) }}
@endif @if($auditLog->new_values)
New Values
{{ json_encode($auditLog->new_values, JSON_PRETTY_PRINT) }}
@endif
@else
No Detailed Data Changes Recorded

This log entry contains only basic activity information.

@endif
Back to All Logs
@include('admin.footer')