@forelse ($actividad as $registro)
@php
$fechaRegistro = $registro->fecha ? \Carbon\Carbon::parse($registro->fecha) : null;
@endphp
{{ $fechaRegistro ? $fechaRegistro->format('H:i') : '--:--' }}
@if ($fechaRegistro)
{{ $fechaRegistro->format('d/m') }}
@endif
{{ $registro->admin->nombre ?? 'Sistema' }}
{{ $accionesTexto[$registro->accion] ?? ucfirst($registro->accion ?? '') }}
en {{ str_replace('_', ' ', $registro->tabla_afectada ?? '—') }}
@if ($registro->detalle) · {{ $registro->detalle }} @endif
{{ ucfirst($registro->accion ?? '') }}
@empty
Sin actividad registrada
Los cambios en el sistema aparecerán aquí.
@endforelse