Generado: {{ $generated_at }}
Filtros: @if($filters['start']) Desde {{ $filters['start'] }} @endif @if($filters['end']) Hasta {{ $filters['end'] }} @endif @if($filters['search']) | Búsqueda: '{{ $filters['search'] }}' @endif
| # | Evento | Modelo | Obj | User | URL | IP | Fecha | Cambios |
|---|---|---|---|---|---|---|---|---|
| {{ $a->id }} | {{ ucfirst($a->event) }} | {{ class_basename($a->auditable_type) }} | {{ $a->auditable_id }} | @php $u = $a->user ?? null; @endphp @if($u) {{ $u->name ?? $u->usuario ?? ('User #'.$a->user_id) }} (ID: {{ $a->user_id }}) @elseif($a->user_id) User #{{ $a->user_id }} @else N/D @endif | {{ $a->url }} | {{ $a->ip_address }} | {{ $a->created_at }} |
@if(!empty($a->calculated_diff) && count($a->calculated_diff))
@foreach($a->calculated_diff as $c)
{{ $c['field'] }}:
@if($c['status']==='creado')
(nuevo) => {{ is_scalar($c['new']) || is_null($c['new']) ? var_export($c['new'], true) : json_encode($c['new'], JSON_UNESCAPED_UNICODE) }}
@elseif($c['status']==='eliminado')
{{ is_scalar($c['old']) || is_null($c['old']) ? var_export($c['old'], true) : json_encode($c['old'], JSON_UNESCAPED_UNICODE) }} => (eliminado)
@else
{{ is_scalar($c['old']) || is_null($c['old']) ? var_export($c['old'], true) : json_encode($c['old'], JSON_UNESCAPED_UNICODE) }}
⇒
{{ is_scalar($c['new']) || is_null($c['new']) ? var_export($c['new'], true) : json_encode($c['new'], JSON_UNESCAPED_UNICODE) }}
@endif
@endforeach
@else
Sin cambios
@endif
|