@extends('menu/menu') @section('content')
API CAPACITACIONES
Filtrar por

@if (!empty($disable)) @endif @if (!empty($carga_selectRegion)) @foreach ($carga_selectRegion as $regiones) @if ($regiones->sRegion != null) @if($regiones->sRegion == $region) @else @endif @endif @endforeach @endif
@if (!empty($disable)) @endif @if (!empty($carga_selectComuna)) @foreach ($carga_selectComuna as $comunas) @if ($comunas->sComuna != null) @if( $comunas->sComuna === $comuna) @else @endif @endif @endforeach @endif
@if (!empty($disable)) @endif @if(!empty($carga_selectDireccion)) @foreach($carga_selectDireccion as $direcciones) @if ($direcciones->sDireccion != null) @if($direcciones->sDireccion == $direccion) @else @endif @endif @endforeach @endif
@if (!empty($disable)) @endif @if (!empty($carga_selectSucursal)) @foreach($carga_selectSucursal as $sucursales) @if ($sucursales->sTipo_sucursal != null) @if($sucursales->sTipo_sucursal == $sucursal) @else @endif @endif @endforeach @endif
{{-- BOTON BUSCAR --}}
{{-- TABLA DE RESULTADOS --}}
@foreach ($datos_instalacion as $capacitacion) @php $lastStatus = DB::table('asignacion_capacitaciones') ->select('fecha_capacitacion','estado_capa') ->where('direccion','=',$capacitacion->sDireccion) ->orderBy('asignacion_capacitaciones.id','DESC') ->take(1) ->get(); $cont = count($lastStatus); @endphp @if($cont != 0) @else @endif @endforeach
CUI Fecha capacitación Estado Cliente Comuna Dirección settings
{{$capacitacion->sCui}} @if($cont != 0) {{Carbon\Carbon::createFromDate($lastStatus[0]->fecha_capacitacion)->format('d-m-Y')}} @else No informado @endif {{$lastStatus[0]->estado_capa ?? 'No informado'}}No informado{{$capacitacion->sCliente}} {{$capacitacion->sComuna}} {{$capacitacion->sDireccion}}
@endsection