@extends('layouts.app') @section('titulo', 'Logs de Auditoría') @section('contenido')
Registro automático de acciones realizadas en el sistema.
| Fecha y hora | Usuario | Acción | Detalle | IP |
|---|---|---|---|---|
| {{ $log->created_at->format('d/m/Y H:i:s') }} | {{ $log->usuario?->name ?? 'Sistema' }} | @php $color = str_contains($log->accion,'elimin') ? 'bg-red-50 text-red-600' : (str_contains($log->accion,'cre') ? 'bg-emerald-50 text-emerald-700' : (str_contains($log->accion,'sesión') ? 'bg-sky-50 text-sky-700' : 'bg-amber-50 text-amber-700')); @endphp {{ ucfirst($log->accion) }} | {{ $log->descripcion ?: '—' }} | {{ $log->ip ?: '—' }} |
| No hay registros de auditoría con esos criterios. | ||||