@extends('layouts.admin-modern') @section('title', 'Journal d\'audit') @section('content')
@forelse($auditLogs ?? [] as $log) @empty @endforelse
Date Utilisateur Action Description IP
{{ $log->created_at ? $log->created_at->format('d/m/Y H:i:s') : '-' }} {{ $log->user ? $log->user->name : 'Système' }} @php $actionColor = match($log->action_type ?? '') { 'create' => 'green', 'update' => 'blue', 'delete' => 'red', 'login' => 'purple', default => 'gray' }; @endphp {{ $log->action_type ?? '-' }} {{ Str::limit($log->description ?? '-', 60) }} {{ $log->ip_address ?? '-' }}
Aucune entrée dans le journal d'audit
@if(method_exists($auditLogs ?? collect(), 'links'))
{{ $auditLogs->links() }}
@endif
@endsection