@extends('admin.layouts.app') @section('title','Audit Logs') @section('breadcrumb') / Audit Logs @endsection @section('content')
Complete trail of all system actions
| Time | User | Action | Module | Record ID | Description | IP | Changes |
|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($log->created_at)->format('d M Y H:i:s') }} | {{ $log->user_name ?? 'System' }} | @php $actionColors = ['create'=>'success','update'=>'primary','delete'=>'danger','login'=>'info','logout'=>'secondary','status_change'=>'warning','approve'=>'success']; $aColor = $actionColors[$log->action] ?? 'secondary'; @endphp {{ ucwords(str_replace('_',' ',$log->action)) }} | {{ ucwords(str_replace('_',' ',$log->module)) }} | {{ $log->record_id ?? '—' }} | {{ Str::limit($log->description,60) }} | {{ $log->ip_address }} | @if($log->old_values || $log->new_values) @else — @endif |
| No audit logs found | |||||||