Reporte eventos del sistema

@if($origen !== null && $origen == "reportes")
@if(Auth::user()->root) {!! html()->select('institucion', [null => 'Escriba el nombre de la institución'] + $instituciones->all(), $institucion !== null ? $institucion['id'] : '') ->class('form-control') ->id('institucion') ->required() !!} @else @endif
@if (Auth::user()->root) @else @endif
@endif
Limpiar @if(($totalregistros > 0) and (env('date_log_limit') == $fechaHoy)) @if(Auth::user()->root) Borrar Log @endif @endif
@if($institucion !== null && !is_null($institucion) && strlen($institucion['id']) > 0)
Institución:
@if($fecha_inicio !== null && !is_null($fecha_inicio) && $fecha_termino !== null && !is_null($fecha_termino))
Período reporte:
@endif
Total
@if($logs->count() > 0)
@endif

@if($logs->count() > 0)
{{--

Nota: xyz.

--}}

Para mejorar el rendimiento del reporte, se recomienda acotar el rango de fechas

@endif
@endif

Resultado de la búsqueda

@if($logs->count() == 0)
No hay registros en el período consultado.
@else
@foreach ($logs as $log) @if ($link) @else @endif @endforeach
Usuario Acción Fecha
@if ($log->delegado_id) {{ $log->delegado->nombres ?? '' }} {{ $log->delegado->apellidos ?? '' }}
(representando a {{ $log->usuario->nombres ?? '' }} ) {{ $log->usuario->apellidos ?? '' }} @else {{ $log->usuario->nombres ?? '' }} {{ $log->usuario->apellidos ?? '' }} @endif {{-- @if ($log->usuario) {{ $log->usuario->nombres ?? '' }} {{ $log->usuario->apellidos ?? '' }} @endif --}}
{{ $actions[$log->accion] }} @if ($log->accion !== 'login') {{ $labels[$log->tipo] }} @endif @if($log->detalle_objeto !== null) ({{ $log->texto_detalle}}) @endif {{ $actions[$log->accion] }} @if ($log->accion !== 'login') @if($log->accion == 'send_email') (Destinatario: {{ $info->destinatario ?? '' }}, Id mensaje: {{ $info->mensaje_id ?? '' }}, Asunto: {{$info->asunto ?? '' }}, Contenido: {{ html_entity_decode(strip_tags(base64_decode(json_encode($info->contenido ?? '')))) }} ) @endif @if($log->accion == 'fuera_oficina') {{ $labels[$log->tipo] }} (pertenencia id {{$log['objeto_id']}}) @else {{ $labels[$log->tipo] }} @endif @endif {{ \Date::createFromFormat('Y-m-d H:i:s', $log->created_at)->setTimeZone(new DateTimeZone('America/Santiago')) }}
{{$logs->appends( [ 'institucion' => $institucion['id'], 'cod_usuario' => $cod_usuario, 'fecha_inicio' => $fecha_inicio, 'fecha_termino' => $fecha_termino ] )->links() }} {{-- {{ $logs->links() }} --}} @endif