@extends('admin.layout') @section('title', 'Audit Logs') @section('content') @php $livePolling = ! request()->hasAny(['search', 'action', 'user_id', 'model', 'date_from', 'date_to']) && $logs->onFirstPage(); @endphp {{-- ── PAGE HEADER ─────────────────────────────────────────── --}}
Complete trail of every action taken in the system.
| Time | User | Action | Record | IP Address | Changes |
|---|---|---|---|---|---|
|
{{ $log->created_at->format('g:i A') }}
{{ $log->created_at->format('M d, Y') }}
{{ $log->created_at->diffForHumans() }}
|
{{-- User --}}
{{ $initials }}
@if($log->user_name)
{{ $log->user_name }}
@if($log->user_role)
{{ ucfirst($log->user_role) }}
@endif
@else
Guest
@endif
|
{{-- Action --}}
{{ str_replace('_', ' ', $log->action) }}
@if($log->auditable_type)
{{ $log->auditable_label ?? class_basename($log->auditable_type) }}
· {{ class_basename($log->auditable_type) }}@if($log->auditable_id) #{{ $log->auditable_id }}@endif
@endif
|
{{-- Record / description --}}
{{ $log->description ?? '—' }} | {{-- IP --}}{{ $log->ip_address ?? '—' }} | {{-- Diff toggle --}}@if($log->old_values || $log->new_values) @else — @endif |
|
No entries found
Try adjusting your filters or wait for activity to be recorded.
|
|||||