| 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...)
|