@extends('layouts.app') @section('title', 'Audit Logs') @section('content')
Track and inspect system-wide user actions and model changes.
| Timestamp | User | Action | Entity | Description | IP Address | Details |
|---|---|---|---|---|---|---|
| {{ $log->created_at->format('Y-m-d H:i:s') }} |
{{ strtoupper(substr($log->user->name ?? 'S', 0, 1)) }}
{{ $log->user->name ?? 'System' }}
{{ $log->user->email ?? 'N/A' }}
|
@if($log->action === 'CREATE') CREATE @elseif($log->action === 'UPDATE') UPDATE @elseif($log->action === 'DELETE') DELETE @elseif($log->action === 'LOGIN') LOGIN @elseif($log->action === 'LOGOUT') LOGOUT @elseif($log->action === 'APPROVE') APPROVE @elseif($log->action === 'REJECT') REJECT @else {{ $log->action }} @endif | @if($log->entity_type) {{ class_basename($log->entity_type) }} #{{ $log->entity_id ?? '-' }} @else - @endif | {{ $log->description ?? '-' }} |
{{ $log->ip_address ?? '127.0.0.1' }}
|
|
No Audit Logs FoundTry adjusting your search criteria or resetting filters. |
||||||