@extends('layouts.admin') @section('content')

Reporte eventos del sistema

@if($origen !== null && $origen == "reportes")
@if(auth()->user()->root) @else @endif
@if (auth()->user()->root) @else @endif
@endif
Limpiar @if(($logsTotal > 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($fechaInicio !== null && !is_null($fechaInicio) && $fechaTermino !== null && !is_null($fechaTermino))
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] ?? $log->accion }} @if (!in_array($log->accion, ['login', 'login_claveunica'])) {{ $labels[$log->tipo] ?? $log->tipo }} @endif @if($log->detalle_objeto !== null) ({{ $log->texto_detalle}}) @endif {{ $actions[$log->accion] ?? $log->accion }} @if (!in_array($log->accion, ['login', 'login_claveunica'])) @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] ?? $log->tipo }} (pertenencia id {{$log['objeto_id']}}) @else {{ $labels[$log->tipo] ?? $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' => $codUsuario, 'fecha_inicio' => $fechaInicio, 'fecha_termino' => $fechaTermino ] )->links() }} {{-- {{ $logs->links() }} --}} @endif
@endsection