{{ __('Audit Trail') }}

Clear Filters
@forelse($auditLogs ?? [] as $log) @empty @foreach([ ['timestamp' => now()->subMinutes(5), 'user' => 'John Doe', 'action' => 'update', 'entity' => 'account', 'entity_id' => 'ACC-789012', 'ip' => '192.168.1.100'], ['timestamp' => now()->subMinutes(15), 'user' => 'Jane Smith', 'action' => 'create', 'entity' => 'transaction', 'entity_id' => 'TXN-345678', 'ip' => '192.168.1.101'], ['timestamp' => now()->subMinutes(30), 'user' => 'System', 'action' => 'export', 'entity' => 'report', 'entity_id' => 'RPT-567890', 'ip' => '127.0.0.1'], ['timestamp' => now()->subHours(1), 'user' => 'Admin User', 'action' => 'delete', 'entity' => 'user', 'entity_id' => 'USR-234567', 'ip' => '192.168.1.102'], ['timestamp' => now()->subHours(2), 'user' => 'Compliance Officer', 'action' => 'view', 'entity' => 'kyc', 'entity_id' => 'KYC-890123', 'ip' => '192.168.1.103'], ] as $mockLog) @endforeach @endforelse
Timestamp User Action Entity IP Address User Agent Details
{{ $log->created_at ?? now()->format('Y-m-d H:i:s') }} {{ $log->user->name ?? 'System' }} @php $actionColors = [ 'create' => 'green', 'update' => 'blue', 'delete' => 'red', 'view' => 'gray', 'login' => 'indigo', 'logout' => 'purple', 'export' => 'yellow' ]; $color = $actionColors[$log->action ?? 'view'] ?? 'gray'; @endphp {{ ucfirst($log->action ?? 'view') }}
{{ ucfirst($log->entity_type ?? 'account') }}
ID: {{ $log->entity_id ?? 'ACC-123456' }}
{{ $log->ip_address ?? '192.168.1.1' }}
{{ Str::limit($log->user_agent ?? 'Mozilla/5.0', 30) }}
{{ $mockLog['timestamp']->format('Y-m-d H:i:s') }} {{ $mockLog['user'] }} @php $actionColors = [ 'create' => 'green', 'update' => 'blue', 'delete' => 'red', 'view' => 'gray', 'export' => 'yellow' ]; $color = $actionColors[$mockLog['action']] ?? 'gray'; @endphp {{ ucfirst($mockLog['action']) }}
{{ ucfirst($mockLog['entity']) }}
ID: {{ $mockLog['entity_id'] }}
{{ $mockLog['ip'] }}
Mozilla/5.0 (Windows NT 10.0...)
@if(isset($auditLogs)) {{ $auditLogs->withQueryString()->links() }} @endif
@push('scripts') @endpush