@extends('layouts.app') @section('title', 'Audit Trail') @section('breadcrumb')
Permanent, tamper-proof log of all actions in this company
| Time | User | Action | Module | Record | Description | IP | Detail |
|---|---|---|---|---|---|---|---|
|
{{ $log->created_at->format('d M Y') }} {{ $log->created_at->format('H:i:s') }} |
{{ $log->user_type === 'super_admin' ? 'Super Admin' : 'User #'.$log->user_id }}
|
@php $colors = ['login'=>'#d1e7dd|#0a3622','logout'=>'#e9ecef|#495057','create'=>'#cfe2ff|#084298', 'update'=>'#fff3cd|#664d03','delete'=>'#f8d7da|#842029','post'=>'#d1e7dd|#0a3622', 'approve'=>'#d1e7dd|#0a3622','reject'=>'#fff3cd|#664d03','password_reset'=>'#cfe2ff|#084298', 'failed_login'=>'#f8d7da|#842029','status_change'=>'#fff3cd|#664d03','lock'=>'#f8d7da|#842029']; [$bg,$fg] = explode('|', $colors[$log->action] ?? '#e9ecef|#495057'); @endphp {{ ucwords(str_replace('_',' ',$log->action)) }} | {{ $log->module }} | {{ $log->record_id ? '#'.$log->record_id : '—' }} | {{ \Illuminate\Support\Str::limit($log->description, 55) }} | {{ $log->ip_address }} |
@if($log->old_values || $log->new_values) @else — @endif |
| No audit records match the selected filters. | |||||||