@extends('layouts.app') @section('title', 'Registro de actividades') @section('content')

historyMódulo de Registro de Actividades

Auditoría detallada de cambios, accesos y acciones en el sistema

@if ($errors->any())
@endif @php $modelLabels = [ 'User' => 'Usuario', 'Charge' => 'Cargo', 'Resolucion' => 'Resolución', 'Interesado' => 'Interesado', 'NaturalPerson' => 'Persona natural', 'Entity' => 'Entidad', 'LegalEntity' => 'Persona juridica', 'Setting' => 'Configuración', ]; @endphp
Registro de actividades
Auditoría de cambios y acciones del sistema
refresh Limpiar
@forelse ($logs as $log) @php $action = strtolower($log->action ?? ''); $actionClass = match ($action) { 'create', 'created' => 'success', 'update', 'updated' => 'warning', 'delete', 'deleted' => 'danger', default => 'secondary', }; @endphp
{{ $log->user ? trim($log->user->name . ' ' . $log->user->last_name) : 'Sistema' }}
{{ optional($log->created_at)->format('Y-m-d H:i') }}
{{ ucfirst($action) }}
Modelo
{{ $modelLabels[$log->model] ?? $log->model }}
Razón
{{ $log->reason ?? 'Sin especificar' }}
@if ($log->before) @endif @if ($log->after) @endif @if (!$log->before && !$log->after) Sin cambios registrados @endif
@empty
inbox No hay registros.
@endforelse
@forelse ($logs as $log) @php $action = strtolower($log->action ?? ''); $actionClass = match ($action) { 'create', 'created' => 'success', 'update', 'updated' => 'warning', 'delete', 'deleted' => 'danger', default => 'secondary', }; @endphp @empty @endforelse
Fecha Usuario Acción Modelo Razón Antes Después
{{ optional($log->created_at)->format('Y-m-d H:i') }} {{ $log->user ? trim($log->user->name . ' ' . $log->user->last_name) : 'Sistema' }} {{ ucfirst($action) }} {{ $modelLabels[$log->model] ?? $log->model }} {{ $log->reason ?? 'Sin especificar' }} @if ($log->before) @else N/A @endif @if ($log->after) @else N/A @endif
inbox No hay registros.
@if ($logs->hasPages()) @endif
@endsection