{{-- SECTION 1: Header --}}

Audit Trail

Rekaman Aktivitas Staf & Keamanan Sistem

{{-- Statistik --}} TOTAL: {{ $logs->total() }} LOGS {{-- Export: Font Putih (text-white) --}} Export XLSX {{-- Reset --}}
@csrf @method('DELETE')
{{-- SECTION 2: Filter --}}
{{-- Opsi Filter --}} @if(request()->anyFilled(['search', 'action'])) Reset @endif
{{-- SECTION 3: Tabel --}}
@forelse($logs as $log) {{-- Inisial: Font Gelap (text-slate-900) di Box Putih --}} @empty @endforelse
Waktu Staf Pelaksana Aksi Deskripsi Aktivitas Teknis

{{ $log->created_at->format('d/m/Y') }}

{{ $log->created_at->format('H:i:s') }}

{{ substr($log->user->name ?? 'S', 0, 1) }}

{{ $log->user->name ?? 'Sistem' }}

{{ $log->user->role ?? '-' }}

@php $action = strtoupper($log->action); $style = 'text-slate-500 bg-slate-50 border-slate-100'; if(str_contains($action, 'CREATE')) $style = 'text-emerald-600 bg-emerald-50 border-emerald-100'; if(str_contains($action, 'UPDATE')) $style = 'text-blue-600 bg-blue-50 border-blue-100'; if(str_contains($action, 'DELETE')) $style = 'text-rose-600 bg-rose-50 border-rose-100'; if(str_contains($action, 'LOGIN')) $style = 'text-amber-600 bg-amber-50 border-amber-100'; @endphp {{ $log->action }}
{{ $log->description }} Target: {{ class_basename($log->model) }} (ID: {{ $log->model_id }})
{{ $log->ip_address }}
Tidak ada log ditemukan
{{ $logs->appends(request()->query())->links() }}
{{-- Script SweetAlert (Tanpa perubahan layout) --}} @push('scripts') @endpush