@extends('admin.layouts.app') @section('title', 'Audit Log') @section('content')
Monitor system activity and user actions.
| Date | User | Action | Module | Description | IP Address | Detail |
|---|---|---|---|---|---|---|
|
{{ $log->created_at->format('d M Y') }}
{{ $log->created_at->format('H:i:s') }}
|
{{-- User --}}
@if($log->user)
{{ $log->user->name }}
{{ $log->user->email }}
@else
System
@endif
|
{{-- Action --}}
@php $badge = match($log->action) { 'created' => [ 'bg-success-subtle text-success', 'bi-plus-circle' ], 'updated' => [ 'bg-primary-subtle text-primary', 'bi-pencil' ], 'deleted' => [ 'bg-danger-subtle text-danger', 'bi-trash' ], 'login' => [ 'bg-info-subtle text-info', 'bi-box-arrow-in-right' ], 'logout' => [ 'bg-secondary-subtle text-secondary', 'bi-box-arrow-right' ], 'approve' => [ 'bg-success-subtle text-success', 'bi-check-circle' ], 'reject' => [ 'bg-danger-subtle text-danger', 'bi-x-circle' ], default => [ 'bg-dark-subtle text-dark', 'bi-activity' ], }; @endphp {{ ucfirst($log->action) }} | {{-- Module --}}@if($log->module) {{ ucfirst(str_replace('_', ' ', $log->module)) }} @else - @endif | {{-- Description --}}{{ $log->description ?? '-' }} | {{-- IP --}}
{{ $log->ip_address ?? '-' }}
|
{{-- Detail --}}
@if($log->old_values || $log->new_values || $log->user_agent) @else - @endif |
|
No activity found.
|
||||||