@extends('layouts.app') @section('title', 'Traçabilité - GSI Mobilier') @section('page-title', 'Traçabilité') @section('page-description', "Journal des opérations (création, modification, suppression)") @section('content')
@php $actionLabels = [ 'create' => 'Création', 'update' => 'Modification', 'delete' => 'Suppression', 'login' => 'Connexion', 'logout' => 'Déconnexion', ]; @endphp
Réinitialiser
@foreach($logs as $log) @endforeach
Date Utilisateur Action IP Route Parcours
{{ $log->created_at->format('d/m/Y H:i:s') }} {{ $log->user?->name ?? '—' }}
{{ $log->user?->email }}
{{ $actionLabels[$log->action] ?? strtoupper($log->action) }} {{ $log->ip }} {{ $log->method }} {{ $log->route }} @if($log->user) Voir @else — @endif
{{ $logs->links() }}
@endsection