@include('admin.header') @section('title', 'Audit Logs')
Audit Logs
@foreach($logs as $log) @endforeach
# Timestamp User Action Module Description IP Address action
{{ $loop->iteration }} {{ $log->created_at->format('M d, Y') }}
{{ $log->created_at->format('H:i:s') }}
@if($log->admin->profile_image) Profile @else
@endif {{ $log->admin->name }}
@php $actionColors = [ 'created' => 'success', 'updated' => 'info', 'deleted' => 'danger', 'login' => 'primary', 'logout' => 'warning' ]; $color = $actionColors[$log->action] ?? 'secondary'; @endphp {{ ucfirst($log->action) }} {{ $log->module }} {{ Str::limit($log->description, 50) }} {{ $log->ip_address }}
Showing {{ $logs->firstItem() }} to {{ $logs->lastItem() }} of {{ $logs->total() }} entries
{{ $logs->links() }}
@if($logs->isEmpty())
No Audit Logs Found

Activity logs will appear here as users perform actions in the system.

@endif
@include('admin.footer')