@extends('layouts.app') @section('titulo', 'Audit Trail — GestionCob') @section('contenido')
Registro completo de acciones en el sistema
FILTROS
| Fecha y hora | Usuario | Rol | Acción | Módulo | Descripción | IP |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($log->created_at)->format('d/m/Y H:i:s') }} | {{ $log->user_nombre ?? 'Sistema' }} | {{ $log->user_rol ?? '—' }} | @php $colores = [ 'CREAR' => 'bg-green-100 text-green-700', 'EDITAR' => 'bg-yellow-100 text-yellow-700', 'ELIMINAR' => 'bg-red-100 text-red-700', 'LOGIN' => 'bg-blue-100 text-blue-700', 'LOGOUT' => 'bg-gray-100 text-gray-600', 'ESCALAR' => 'bg-purple-100 text-purple-700', ]; $color = $colores[$log->accion] ?? 'bg-gray-100 text-gray-600'; @endphp {{ $log->accion }} | {{ $log->modulo }} | {{ $log->descripcion }} @if($log->registro_id) #{{ $log->registro_id }} @endif | {{ $log->ip_address ?? '—' }} |
| No hay registros en el Audit Trail con los filtros seleccionados. | ||||||