@extends('adminlte::page') @section('plugins.Datatables', true) @section('plugins.Sweetalert2', true) @section('plugins.Select1', true) @section('plugins.Sortable', true) @section('plugins.ClockPicker', true) @section('title', 'Intranet | Detalle Postulantes Para El Cargo ' . $cargo->cargo) @section('content_header')
@stop @section('content')
@if ($cargo->solicitudDeReclutamiento->estado == 'Pendiente')
{{ $cargo->solicitudDeReclutamiento->estado }}
@endif @if ($cargo->solicitudDeReclutamiento->estado == 'Aprobado')
{{ $cargo->solicitudDeReclutamiento->estado }}
@endif @if ($cargo->solicitudDeReclutamiento->estado == 'Rechazado')
{{ $cargo->solicitudDeReclutamiento->estado }}
@endif @if ($cargo->solicitudDeReclutamiento->estado == 'Anulada')
{{ $cargo->solicitudDeReclutamiento->estado }}
@endif
@csrf
@isset($cargo->solicitudDeReclutamiento->autorizador)
@endisset @if ($cargo->solicitudDeReclutamiento->centroCosto->sucursal == 'Antofagasta') @isset($cargo->solicitudDeReclutamiento->responsableSondeo)
@endisset @else @isset($cargo->solicitudDeReclutamiento->responsableSondeo)
@endisset @isset($cargo->solicitudDeReclutamiento->responsableDocumentacion)
@endisset @endif
@if ($cargo->experiencia_laboral > 0)
@else
@endif
@if (count($cargo->conocimientos) > 0)
@php $cantidadConocimientoDelCargo = 0; @endphp @foreach ($cargo->conocimientos as $cono) @php $cantidadConocimientoDelCargo++; @endphp @endforeach
# Conocimientos y/o certificaciones Añadidos
{{ $cantidadConocimientoDelCargo }} {{ $cono->conocimiento_certificacion }}
@endif @if (count($cargo->bonos) > 0)
@php $cantidadBonosDelCargo = 0; @endphp @foreach ($cargo->bonos as $bon) @php $cantidadBonosDelCargo++; @endphp @endforeach
# Bonos Asociados Añadidos
{{ $cantidadBonosDelCargo }} {{ $bon->bono }}
@endif @isset($cargo->observacion)
@endisset
EVALUACIONES
OPCIÓN SELECCIONADA
@php $cantidadModalEvaluacion = 0; @endphp @foreach ($cargo->evaluaciones as $detalleEvaluacion) @php $cantidadEvaluacionEsPar = false; $cantidadModalEvaluacion++; if ($cantidadModalEvaluacion % 2 == 0) { $cantidadEvaluacionEsPar = true; } else { $cantidadEvaluacionEsPar = false; } @endphp @if ($cantidadEvaluacionEsPar == false)
{{ $detalleEvaluacion->evaluacion }}
{{ $detalleEvaluacion->opcion }}
@else
{{ $detalleEvaluacion->evaluacion }}
{{ $detalleEvaluacion->opcion }}
@endif @endforeach
@if ($cargo->solicitudDeReclutamiento->estado == 'Rechazado')
@endif @if ($cargo->solicitudDeReclutamiento->estado == 'Anulada')
@endif @if(count($cargo->enviosSondeo)>0)
@php $cantidadDeSondeo=0; @endphp @foreach($cargo->enviosSondeo as $sondeo) @php $cantidadDeSondeo++; @endphp @endforeach
# Acciones Fecha Días De Proceso Usuario Que Envio El Sondeo
{{$cantidadDeSondeo}} {{$sondeo->fecha}} {{$sondeo->dias_atraso}} {{$sondeo->nombre_usuario}}
@endif
@php $cantidadCargoAvances=0; @endphp @foreach($cargo->solicitudDeReclutamiento->elementos as $elemento) @php $cantidadCargoAvances++; $numeroVacantes=$elemento->numero_vacante; $cantidadPostulantePendiente=0; $cantidadPostulanteDescartado=0; $cantidadPostulanteAceptado=0; $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido=0; $cantidadPostulanteConFichaTecnicaEstablecido=0; $cantidadPostulanteEnEtapaDeDocumentos=0; $cantidadPostulanteCarpetaEnviada=0; $cantidadPostulanteCarpetaAprobada=0; foreach ($elemento->postulantes as $postulante) { if($postulante->estado=="Pendiente"){ $cantidadPostulantePendiente++; }else if($postulante->estado=="Descartado"){ $cantidadPostulanteDescartado++; }else if($postulante->estado=="Aceptado"){ $cantidadPostulanteAceptado++; if(isset($postulante->fecha_entrevista_tecnica)){ $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido++; if(isset($postulante->fichaRespondida)){ $cantidadPostulanteConFichaTecnicaEstablecido++; if($elemento->establecio_prioridad==true && count($postulante->referencias)>0 && $postulante->estado_coordinacion=="Coordinado"){ $cantidadPostulanteEnEtapaDeDocumentos++; if($postulante->carpetaDeDocumentos->envio_carpeta==true){ $cantidadPostulanteCarpetaEnviada++; if($postulante->carpetaDeDocumentos->estado_carpeta=="Aprobado"){ $cantidadPostulanteCarpetaAprobada++; } } } } } } } //---------------Avances Postulantes Pendientes------------------- if ($cantidadPostulantePendiente > 0) { $porcentajePostulantePendiente = $cantidadPostulantePendiente / $numeroVacantes; } else { $porcentajePostulantePendiente = 0; } $porcentajePostulantePendiente = $porcentajePostulantePendiente * 100; $barraDeProgresoPostulantePendiente = ''; if ($cantidadPostulantePendiente>=$numeroVacantes) { $barraDeProgresoPostulantePendiente = '
' . '
' . '
' . '
' . $cantidadPostulantePendiente . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulantePendiente > 0) { $barraDeProgresoPostulantePendiente = '
' . '
' . '
' . '
' . $cantidadPostulantePendiente . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulantePendiente = '
' . '
' . '
' . '
' . $cantidadPostulantePendiente . '/' . $numeroVacantes . '
'; } //---------------Avances Postulantes Descartado------------------- if ($cantidadPostulanteDescartado > 0) { $porcentajePostulanteDescartado = $cantidadPostulanteDescartado / $numeroVacantes; } else { $porcentajePostulanteDescartado = 0; } $porcentajePostulanteDescartado = $porcentajePostulanteDescartado * 100; $barraDeProgresoPostulanteDescartado = ''; if ($cantidadPostulanteDescartado>=$numeroVacantes) { $barraDeProgresoPostulanteDescartado = '
' . '
' . '
' . '
' . $cantidadPostulanteDescartado . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulanteDescartado > 0) { $barraDeProgresoPostulanteDescartado = '
' . '
' . '
' . '
' . $cantidadPostulanteDescartado . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulanteDescartado = '
' . '
' . '
' . '
' . $cantidadPostulanteDescartado . '/' . $numeroVacantes . '
'; } //---------------Avances Postulantes Aceptado------------------- if ($cantidadPostulanteAceptado > 0) { $porcentajePostulanteAceptado = $cantidadPostulanteAceptado / $numeroVacantes; } else { $porcentajePostulanteAceptado = 0; } $porcentajePostulanteAceptado = $porcentajePostulanteAceptado * 100; $barraDeProgresoPostulanteAceptado = ''; if ($cantidadPostulanteAceptado>=$numeroVacantes) { $barraDeProgresoPostulanteAceptado = '
' . '
' . '
' . '
' . $cantidadPostulanteAceptado . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulanteAceptado > 0) { $barraDeProgresoPostulanteAceptado = '
' . '
' . '
' . '
' . $cantidadPostulanteAceptado . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulanteAceptado = '
' . '
' . '
' . '
' . $cantidadPostulanteAceptado. '/' . $numeroVacantes . '
'; } //---------------Avances Postulantes Con Fecha Y Hora Entrevista Tecnica Establecido------------------- if ($cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido > 0) { $porcentajePostulanteConFechaHoraEntrevistaTecnicaEstablecido = $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido / $numeroVacantes; } else { $porcentajePostulanteConFechaHoraEntrevistaTecnicaEstablecido = 0; } $porcentajePostulanteConFechaHoraEntrevistaTecnicaEstablecido = $porcentajePostulanteConFechaHoraEntrevistaTecnicaEstablecido * 100; $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido = ''; if ($cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido>=$numeroVacantes) { $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido > 0) { $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido. '/' . $numeroVacantes . '
'; } //---------------Avances Postulantes Con Ficha De Entrevista Tecnica------------------- if ($cantidadPostulanteConFichaTecnicaEstablecido > 0) { $porcentajePostulanteConFichaTecnicaEstablecido= $cantidadPostulanteConFichaTecnicaEstablecido / $numeroVacantes; } else { $porcentajePostulanteConFichaTecnicaEstablecido = 0; } $porcentajePostulanteConFichaTecnicaEstablecido = $porcentajePostulanteConFichaTecnicaEstablecido * 100; $barraDeProgresoPostulanteConFichaTecnicaEstablecido = ''; if ($cantidadPostulanteConFichaTecnicaEstablecido>=$numeroVacantes) { $barraDeProgresoPostulanteConFichaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFichaTecnicaEstablecido . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulanteConFichaTecnicaEstablecido > 0) { $barraDeProgresoPostulanteConFichaTecnicaEstablecido= '
' . '
' . '
' . '
' . $cantidadPostulanteConFichaTecnicaEstablecido . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulanteConFichaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFichaTecnicaEstablecido. '/' . $numeroVacantes . '
'; } //---------------Avances Postulantes En Etapa De Documentos------------------- if ($cantidadPostulanteEnEtapaDeDocumentos > 0) { $porcentajePostulanteEnEtapaDeDocumentos= $cantidadPostulanteEnEtapaDeDocumentos / $numeroVacantes; } else { $porcentajePostulanteEnEtapaDeDocumentos = 0; } $porcentajePostulanteEnEtapaDeDocumentos = $porcentajePostulanteEnEtapaDeDocumentos * 100; $barraDeProgresoPostulanteEnEtapaDeDocumentos = ''; if ($cantidadPostulanteEnEtapaDeDocumentos>=$numeroVacantes) { $barraDeProgresoPostulanteEnEtapaDeDocumentos = '
' . '
' . '
' . '
' . $cantidadPostulanteEnEtapaDeDocumentos . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulanteEnEtapaDeDocumentos > 0) { $barraDeProgresoPostulanteEnEtapaDeDocumentos= '
' . '
' . '
' . '
' . $cantidadPostulanteEnEtapaDeDocumentos . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulanteEnEtapaDeDocumentos = '
' . '
' . '
' . '
' . $cantidadPostulanteEnEtapaDeDocumentos. '/' . $numeroVacantes . '
'; } //---------------Avances Postulantes Carpeta Enviada------------------- if ($cantidadPostulanteCarpetaEnviada > 0) { $porcentajePostulanteCarpetaEnviada= $cantidadPostulanteCarpetaEnviada / $numeroVacantes; } else { $porcentajePostulanteCarpetaEnviada = 0; } $porcentajePostulanteCarpetaEnviada = $porcentajePostulanteCarpetaEnviada * 100; $barraDeProgresoPostulanteCarpetaEnviada= ''; if ($cantidadPostulanteCarpetaEnviada>=$numeroVacantes) { $barraDeProgresoPostulanteCarpetaEnviada = '
' . '
' . '
' . '
' . $cantidadPostulanteCarpetaEnviada . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulanteCarpetaEnviada > 0) { $barraDeProgresoPostulanteCarpetaEnviada= '
' . '
' . '
' . '
' . $cantidadPostulanteCarpetaEnviada . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulanteCarpetaEnviada = '
' . '
' . '
' . '
' . $cantidadPostulanteCarpetaEnviada. '/' . $numeroVacantes . '
'; } //---------------Avances Postulantes Carpeta Aprobada------------------- if ($cantidadPostulanteCarpetaAprobada > 0) { $porcentajePostulanteCarpetaAprobada= $cantidadPostulanteCarpetaAprobada / $numeroVacantes; } else { $porcentajePostulanteCarpetaAprobada = 0; } $porcentajePostulanteCarpetaAprobada = $porcentajePostulanteCarpetaAprobada * 100; $barraDeProgresoPostulanteCarpetaAprobada= ''; if ($cantidadPostulanteCarpetaAprobada>=$numeroVacantes) { $barraDeProgresoPostulanteCarpetaAprobada = '
' . '
' . '
' . '
' . $cantidadPostulanteCarpetaAprobada . '/' . $numeroVacantes . '
'; } elseif ($cantidadPostulanteCarpetaAprobada > 0) { $barraDeProgresoPostulanteCarpetaAprobada= '
' . '
' . '
' . '
' . $cantidadPostulanteCarpetaAprobada . '/' . $numeroVacantes . '
'; } else { $barraDeProgresoPostulanteCarpetaAprobada = '
' . '
' . '
' . '
' . $cantidadPostulanteCarpetaAprobada. '/' . $numeroVacantes . '
'; } @endphp @endforeach
# Nombre Cargo Numero De Vacantes Avances De Postulantes Pendientes Avances De Postulantes Descartado Avances De Postulantes Aceptado Avances De Postulantes Con Fecha Y Hora Entrevista Tecnica Establecido Avances De Postulantes Con Ficha Entrevista Tecnica Avances De Postulantes En Etapa De Documentos/Actividades Avances De Postulantes Con Carpeta De Documentos Enviada Avances De Postulantes Con Carpeta Aprobadas
{{$cantidadCargoAvances}} {{ $elemento->cargo }} {{ $elemento->numero_vacante }} {!! $barraDeProgresoPostulantePendiente !!} {!! $barraDeProgresoPostulanteDescartado !!} {!! $barraDeProgresoPostulanteAceptado !!} {!! $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido !!} {!! $barraDeProgresoPostulanteConFichaTecnicaEstablecido !!} {!! $barraDeProgresoPostulanteEnEtapaDeDocumentos !!} {!! $barraDeProgresoPostulanteCarpetaEnviada !!} {!! $barraDeProgresoPostulanteCarpetaAprobada !!}
@php $cantidadPostulante = 0; $cantidadDePostulantesEnviadoParaAprobacion = 0; $cantidadDePostulantesNoEnviadoParaAprobacion = 0; $cantidadPostulanteAprobados = 0; foreach ($cargo->postulantes as $postula) { if ($postula->estado == 'Aceptado') { $cantidadPostulanteAprobados++; } } $todosLosPostulanteTieneFichaEntrevistaTecnica = true; $algunPostulanteTieneFechaEntrevista = false; @endphp @foreach ($cargo->postulantes as $postulante) @php if (isset($postulante->fichaRespondida)) { } else { if ($postulante->estado == 'Aceptado' || $postulante->estado == 'Pendiente') { $todosLosPostulanteTieneFichaEntrevistaTecnica = false; } } if (isset($postulante->fecha_entrevista_tecnica)) { $algunPostulanteTieneFechaEntrevista = true; } @endphp @if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.index-carpeta-documentos-postulantes')) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } $postulanteConTodosLosDatosCompleto = false; if (isset($postulante->rut) && isset($postulante->ciudad) && isset($postulante->licencia_conducir) && isset($postulante->correo) && isset($postulante->telefono) && isset($postulante->discapacidad) && isset($postulante->nombre_discapacidad) && isset($postulante->pretencion_renta_texto) && isset($postulante->disponibilidad)) { $postulanteConTodosLosDatosCompleto = true; } @endphp @if ($postulante->prioridad > 0) @else @endif @if (isset($postulante->referido)) @if ($postulante->referido == true) @elseif($postulante->referido == false) @else @endif @else @endif @if (isset($postulante->discapacidad)) @if ($postulante->discapacidad == true) @elseif($postulante->discapacidad == false) @else @endif @else @endif @if ($postulante->experiencia_general > 0) @else @endif @if ($postulante->experiencia_especifica > 0) @else @endif @if (isset($postulante->usuarioQueAceptoElPostulante)) @else @endif @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @else @endif @if (isset($postulante->fichaRespondida)) @else @endif @if (isset($postulante->fichaRespondida)) @if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Regular') @elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente') @endif @else @endif @elseif($cargo->solicitudDeReclutamiento->id_usuario == auth()->user()->id) @isset($postulante->envioSondeo) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } @endphp @if ($postulante->prioridad > 0) @else @endif @if (!isset($postulante->fichaRespondida)) @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @else @endif @if ($postulante->discapacidad == true) @else @endif @if ($postulante->experiencia_general > 0) @else @endif @if ($postulante->experiencia_especifica > 0) @else @endif @if (isset($postulante->usuarioQueAceptoElPostulante)) @else @endif @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @else @endif @if (isset($postulante->fichaRespondida)) @else @endif @if (isset($postulante->fichaRespondida)) @if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Regular') @elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente') @endif @else @endif @endisset @elseif(Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.editar-carpeta-documentos-postulantes')) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } @endphp @if ($postulante->prioridad > 0) @else @endif @if (!isset($postulante->fichaRespondida)) @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @else @endif @if ($postulante->discapacidad == true) @else @endif @if ($postulante->experiencia_general > 0) @else @endif @if ($postulante->experiencia_especifica > 0) @else @endif @if (isset($postulante->usuarioQueAceptoElPostulante)) @else @endif @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @else @endif @if (isset($postulante->fichaRespondida)) @else @endif @if (isset($postulante->fichaRespondida)) @if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Regular') @elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente') @endif @else @endif @else @isset($postulante->envioSondeo) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } @endphp @if ($postulante->prioridad > 0) @else @endif @if (!isset($postulante->fichaRespondida)) @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @else @endif @if ($postulante->discapacidad == true) @else @endif @if ($postulante->experiencia_general > 0) @else @endif @if ($postulante->experiencia_especifica > 0) @else @endif @if (isset($postulante->usuarioQueAceptoElPostulante)) @else @endif @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @else @endif @if (isset($postulante->fichaRespondida)) @else @endif @if (isset($postulante->fichaRespondida)) @if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Regular') @elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente') @endif @else @endif @endisset @endif @endforeach
DATOS POSTULANTES DATOS DE APROBACIÓN DATOS DE ENTREVISTA TÉCNICA
Prioridad Selección Acciones/Datos De Sondeos Rut Postulante Nombre Postulante Correo Postulante Telefono Postulante Ciudad Referido Pretencion De Renta Licencia De Conducir Tiene Discapacidad Nombre Discapacidad Carnet Discapacidad Disponibilidad Experencia General Experencia Especifica Fecha Aprobación Días De Proceso De La Aprobación Usuario Que Aprobo Al Postulante Observación Estado Envio Carta De Agradecimiento Estado Acciones Sobre La Entrevista Técnica Días De Proceso Fecha Y Hora Entrevista Tecnica Fecha Y Hora Entrevista Tecnica Fecha De Cuando Se Respondio La Ficha Días De Proceso Ficha Resultado Ficha Entrevista Tecnica Estado Ficha Entrevista Tecnica
{{ $postulante->prioridad . ' Prioridad' }}Sin Prioridad @if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || $postulante->enfermedades->count() > 0 || $postulante->partes->count() > 0 || $postulante->estudios->count() > 0 || $postulante->experiencias->count() > 0 || $postulante->archivos->count() > 0)
@endif
{{ $postulante->rut }} {{ $postulante->nombre }} {{ $postulante->correo }} {{ $postulante->telefono }} {{ $postulante->ciudad }}SiNo{{ $postulante->pretencion_renta_texto }} {{ $postulante->licencia_conducir }}SiNo{{ $postulante->nombre_discapacidad }} {{ $postulante->carnet_discapacidad }} {{ $postulante->disponibilidad }}{{ $postulante->experiencia_general }} AñosSin Experiencia{{ $postulante->experiencia_especifica }} AñosSin Experiencia{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }} {{ $postulante->dias_atraso_postulante_aceptado }}{{ $postulante->usuarioQueAceptoElPostulante->name }} @isset($postulante->observacion_estado) @endisset @if ($postulante->estado == 'Aceptado' || $postulante->estado == 'Pendiente') No Aplica @elseif($postulante->estado == 'Descartado') @if ($postulante->envio_carta_agredecimiento == true) Enviado @else No Enviado @endif @endif @switch($postulante->estado) @case('Descartado') {{ $postulante->estado }} @break @case('Aceptado') {{ $postulante->estado }} @break @case('Pendiente') {{ $postulante->estado }} @break @endswitch @if (Gate::check('postulante.edit')) @if ($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Aceptado')
@elseif($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Descartado' && $cargo->solicitudDeReclutamiento->estado_cierre == 'Abierta') @if (isset($postulante->fichaRespondida))
@endif @endif @endif
{{ $postulante->dias_atraso_establecer_fecha_entrevista_tecnica }}{{ fechaHoraConFormatoDeChile($postulante->fecha_entrevista_tecnica) }}{{ fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica) }}{{ $postulante->dias_atraso_responder_ficha_entrevista_tecnica }}{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }}AprobadoRechazado
{{ $postulante->prioridad . ' Prioridad' }}Sin Prioridad
@if ($postulante->enfermedades->count() > 0 || $postulante->partes->count() > 0 || $postulante->estudios->count() > 0 || $postulante->experiencias->count() > 0 || $postulante->archivos->count() > 0)
@endif
{{ $postulante->rut }} {{ $postulante->nombre }} {{ $postulante->correo }} {{ $postulante->telefono }} {{ $postulante->ciudad }} @if ($postulante->referido == true) Si @else No @endif {{ $postulante->pretencion_renta_texto }} {{ $postulante->licencia_conducir }}SiNo{{ $postulante->nombre_discapacidad }} {{ $postulante->carnet_discapacidad }} {{ $postulante->disponibilidad }}{{ $postulante->experiencia_general }} AñosSin Experiencia{{ $postulante->experiencia_especifica }} AñosSin Experiencia{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }} {{ $postulante->dias_atraso_postulante_aceptado }}{{ $postulante->usuarioQueAceptoElPostulante->name }} @isset($postulante->observacion_estado) @endisset @if ($postulante->estado == 'Aceptado' || $postulante->estado == 'Pendiente') No Aplica @elseif($postulante->estado == 'Descartado') @if ($postulante->envio_carta_agredecimiento == true) Enviado @else No Enviado @endif @endif @switch($postulante->estado) @case('Descartado') {{ $postulante->estado }} @break @case('Aceptado') {{ $postulante->estado }} @break @case('Pendiente') {{ $postulante->estado }} @break @endswitch @if ($postulante->referido == true) @if ($postulante->estado == 'Aceptado') @if (isset($postulante->fichaRespondida)) @else @endif @endif @else @if ($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Aceptado' && isset($postulante->fecha_entrevista_tecnica))
@elseif($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Descartado' && isset($postulante->fecha_entrevista_tecnica))
@endif @endif
{{ $postulante->dias_atraso_establecer_fecha_entrevista_tecnica }}{{ fechaHoraConFormatoDeChile($postulante->fecha_entrevista_tecnica) }}{{ fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica) }}{{ $postulante->dias_atraso_responder_ficha_entrevista_tecnica }}{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }}AprobadoRechazado
{{ $postulante->prioridad . ' Prioridad' }}Sin Prioridad
@if ($postulante->enfermedades->count() > 0 || $postulante->partes->count() > 0 || $postulante->estudios->count() > 0 || $postulante->experiencias->count() > 0 || $postulante->archivos->count() > 0)
@endif
{{ $postulante->rut }} {{ $postulante->nombre }} {{ $postulante->correo }} {{ $postulante->telefono }} {{ $postulante->ciudad }} @if ($postulante->referido == true) Si @else No @endif {{ $postulante->pretencion_renta_texto }} {{ $postulante->licencia_conducir }}SiNo{{ $postulante->nombre_discapacidad }} {{ $postulante->carnet_discapacidad }} {{ $postulante->disponibilidad }}{{ $postulante->experiencia_general }} AñosSin Experiencia{{ $postulante->experiencia_especifica }} AñosSin Experiencia{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }} {{ $postulante->dias_atraso_postulante_aceptado }}{{ $postulante->usuarioQueAceptoElPostulante->name }} @isset($postulante->observacion_estado) @endisset @if ($postulante->estado == 'Aceptado' || $postulante->estado == 'Pendiente') No Aplica @elseif($postulante->estado == 'Descartado') @if ($postulante->envio_carta_agredecimiento == true) Enviado @else No Enviado @endif @endif @switch($postulante->estado) @case('Descartado') {{ $postulante->estado }} @break @case('Aceptado') {{ $postulante->estado }} @break @case('Pendiente') {{ $postulante->estado }} @break @endswitch @if ($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Aceptado' && isset($postulante->fichaRespondida))
@elseif($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Descartado' && isset($postulante->fecha_entrevista_tecnica))
@endif
{{ $postulante->dias_atraso_establecer_fecha_entrevista_tecnica }}{{ fechaHoraConFormatoDeChile($postulante->fecha_entrevista_tecnica) }}{{ fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica) }}{{ $postulante->dias_atraso_responder_ficha_entrevista_tecnica }}{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }}AprobadoRechazado
{{ $postulante->prioridad . ' Prioridad' }}Sin Prioridad
@if ($postulante->enfermedades->count() > 0 || $postulante->partes->count() > 0 || $postulante->estudios->count() > 0 || $postulante->experiencias->count() > 0 || $postulante->archivos->count() > 0)
@endif
{{ $postulante->rut }} {{ $postulante->nombre }} {{ $postulante->correo }} {{ $postulante->telefono }} {{ $postulante->ciudad }} @if ($postulante->referido == true) Si @else No @endif {{ $postulante->pretencion_renta_texto }} {{ $postulante->licencia_conducir }}SiNo{{ $postulante->nombre_discapacidad }} {{ $postulante->carnet_discapacidad }} {{ $postulante->disponibilidad }}{{ $postulante->experiencia_general }} AñosSin Experiencia{{ $postulante->experiencia_especifica }} AñosSin Experiencia{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }} {{ $postulante->dias_atraso_postulante_aceptado }}{{ $postulante->usuarioQueAceptoElPostulante->name }} @isset($postulante->observacion_estado) @endisset @if ($postulante->estado == 'Aceptado' || $postulante->estado == 'Pendiente') No Aplica @elseif($postulante->estado == 'Descartado') @if ($postulante->envio_carta_agredecimiento == true) Enviado @else No Enviado @endif @endif @switch($postulante->estado) @case('Descartado') {{ $postulante->estado }} @break @case('Aceptado') {{ $postulante->estado }} @break @case('Pendiente') {{ $postulante->estado }} @break @endswitch @if ($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Aceptado' && isset($postulante->fichaRespondida))
@elseif($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Descartado' && isset($postulante->fecha_entrevista_tecnica))
@endif
{{ $postulante->dias_atraso_establecer_fecha_entrevista_tecnica }}{{ fechaHoraConFormatoDeChile($postulante->fecha_entrevista_tecnica) }}{{ fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica) }}{{ $postulante->dias_atraso_responder_ficha_entrevista_tecnica }}{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }}AprobadoRechazado

@php $cantidadLink = 0; @endphp @foreach ($cargo->links as $link) @php $cantidadLink++; @endphp @endforeach
LINK PARA FICHA ENTREVISTA TECNICAS
# Link Nombre Postulante
{{ $cantidadLink }} @foreach ($link->detalleLinks as $detalleLink) @endforeach
{{ $detalleLink->postulante->nombre }}
@if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.index-carpeta-documentos-postulantes')) @else @endif @if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.index-carpeta-documentos-postulantes')) @endif @php $cantidadPostulante = 0; $cantidadDePostulantesEnviadoParaAprobacion = 0; $cantidadDePostulantesNoEnviadoParaAprobacion = 0; $cantidadPostulanteAprobados = 0; foreach ($cargo->postulantes as $postula) { if ($postula->estado == 'Aceptado') { $cantidadPostulanteAprobados++; } } $todosLosPostulanteTieneFichaEntrevistaTecnica = true; $algunPostulanteTieneFechaEntrevista = false; @endphp @foreach ($cargo->postulantes as $postulante) @php if (isset($postulante->fichaRespondida)) { } else { if ($postulante->estado == 'Aceptado' || $postulante->estado == 'Pendiente') { $todosLosPostulanteTieneFichaEntrevistaTecnica = false; } } if (isset($postulante->fecha_entrevista_tecnica)) { $algunPostulanteTieneFechaEntrevista = true; } @endphp @if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.index-carpeta-documentos-postulantes')) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } $documentos = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadDocumentos = 0; $cantidadDocumentosEntregado = 0; $cantidadDocumentosNoEntregado = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Documento') { $detalleDocumentoEntregado = false; $cantidadDocumentos++; foreach ($documentos as $documento) { if ($documento->documentoPostulante->id == $documentosReq->id) { if ($documento->estado == 'Entregado') { $detalleDocumentoEntregado = true; } } } if ($detalleDocumentoEntregado == true) { $cantidadDocumentosEntregado++; } else { $cantidadDocumentosNoEntregado++; } } } if ($cantidadDocumentosEntregado > 0) { $porcentaje = $cantidadDocumentosEntregado / $cantidadDocumentos; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoDocumento = ''; if ($cantidadDocumentos == $cantidadDocumentosEntregado) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } elseif ($cantidadDocumentosEntregado > 0) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } else { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } $actividades = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadActividades = 0; $cantidadActividadesApto = 0; $cantidadActividadesNoApto = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Actividad') { $detalleActividadApto = false; $cantidadActividades++; foreach ($actividades as $actividad) { if ($actividad->documentoPostulante->id == $documentosReq->id) { if ($actividad->estado == 'Apto' || $actividad->estado == 'Apto c/observaciones') { $detalleActividadApto = true; } } } if ($detalleActividadApto == true) { $cantidadActividadesApto++; } else { $cantidadActividadesNoApto++; } } } if ($cantidadActividadesApto > 0) { $porcentaje = $cantidadActividadesApto / $cantidadActividades; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoActividad = ''; if ($cantidadActividades == $cantidadActividadesApto) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } elseif ($cantidadActividadesApto > 0) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } else { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } @endphp @if ($postulante->prioridad > 0) @else @endif @if ($postulante->estado == 'Descartado') @else @endif @if (isset($postulante->fecha_acceso_checklist_documentacion)) @else @endif @if (isset($postulante->fecha_envio_carpeta)) @else @endif @if (isset($postulante->fecha_aprobacion_carpeta)) @else @endif @elseif($cargo->solicitudDeReclutamiento->id_usuario == auth()->user()->id) @isset($postulante->envioSondeo) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } $documentos = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadDocumentos = 0; $cantidadDocumentosEntregado = 0; $cantidadDocumentosNoEntregado = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Documento' && $documentosReq->acceso == 'RRHH/Solicitante De Solicitud') { $detalleDocumentoEntregado = false; $cantidadDocumentos++; foreach ($documentos as $documento) { if ($documento->documentoPostulante->id == $documentosReq->id) { if ($documento->estado == 'Entregado') { $detalleDocumentoEntregado = true; } } } if ($detalleDocumentoEntregado == true) { $cantidadDocumentosEntregado++; } else { $cantidadDocumentosNoEntregado++; } } } if ($cantidadDocumentosEntregado > 0) { $porcentaje = $cantidadDocumentosEntregado / $cantidadDocumentos; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoDocumento = ''; if ($cantidadDocumentos == $cantidadDocumentosEntregado) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } elseif ($cantidadDocumentosEntregado > 0) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } else { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } $actividades = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadActividades = 0; $cantidadActividadesApto = 0; $cantidadActividadesNoApto = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Actividad' && $documentosReq->acceso == 'RRHH/Solicitante De Solicitud') { $detalleActividadApto = false; $cantidadActividades++; foreach ($actividades as $actividad) { if ($actividad->documentoPostulante->id == $documentosReq->id) { if ($actividad->estado == 'Apto' || $actividad->estado == 'Apto c/observaciones') { $detalleActividadApto = true; } } } if ($detalleActividadApto == true) { $cantidadActividadesApto++; } else { $cantidadActividadesNoApto++; } } } if ($cantidadActividadesApto > 0) { $porcentaje = $cantidadActividadesApto / $cantidadActividades; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoActividad = ''; if ($cantidadActividades == $cantidadActividadesApto) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } elseif ($cantidadActividadesApto > 0) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } else { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } @endphp @if ($postulante->prioridad > 0) @else @endif @if ($postulante->estado == 'Descartado') @else @endif @if (isset($postulante->fecha_acceso_checklist_documentacion)) @else @endif @if (isset($postulante->fecha_envio_carpeta)) @else @endif @if (isset($postulante->fecha_aprobacion_carpeta)) @else @endif @endisset @elseif(Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.editar-carpeta-documentos-postulantes')) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } $documentos = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadDocumentos = 0; $cantidadDocumentosEntregado = 0; $cantidadDocumentosNoEntregado = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Documento' && $documentosReq->acceso == 'RRHH/Solicitante De Solicitud') { $detalleDocumentoEntregado = false; $cantidadDocumentos++; foreach ($documentos as $documento) { if ($documento->documentoPostulante->id == $documentosReq->id) { if ($documento->estado == 'Entregado') { $detalleDocumentoEntregado = true; } } } if ($detalleDocumentoEntregado == true) { $cantidadDocumentosEntregado++; } else { $cantidadDocumentosNoEntregado++; } } } if ($cantidadDocumentosEntregado > 0) { $porcentaje = $cantidadDocumentosEntregado / $cantidadDocumentos; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoDocumento = ''; if ($cantidadDocumentos == $cantidadDocumentosEntregado) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } elseif ($cantidadDocumentosEntregado > 0) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } else { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } $actividades = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadActividades = 0; $cantidadActividadesApto = 0; $cantidadActividadesNoApto = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Actividad' && $documentosReq->acceso == 'RRHH/Solicitante De Solicitud') { $detalleActividadApto = false; $cantidadActividades++; foreach ($actividades as $actividad) { if ($actividad->documentoPostulante->id == $documentosReq->id) { if ($actividad->estado == 'Apto' || $actividad->estado == 'Apto c/observaciones') { $detalleActividadApto = true; } } } if ($detalleActividadApto == true) { $cantidadActividadesApto++; } else { $cantidadActividadesNoApto++; } } } if ($cantidadActividadesApto > 0) { $porcentaje = $cantidadActividadesApto / $cantidadActividades; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoActividad = ''; if ($cantidadActividades == $cantidadActividadesApto) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } elseif ($cantidadActividadesApto > 0) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } else { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } @endphp @if ($postulante->prioridad > 0) @else @endif @if ($postulante->estado == 'Descartado') @else @endif @if (isset($postulante->fecha_acceso_checklist_documentacion)) @else @endif @if (isset($postulante->fecha_envio_carpeta)) @else @endif @if (isset($postulante->fecha_aprobacion_carpeta)) @else @endif @else @isset($postulante->envioSondeo) @php $cantidadPostulante++; $listadoEnfermedades = json_encode($postulante->enfermedades); $listadoPartes = json_encode($postulante->partes); $listadoEstudios = json_encode($postulante->estudios); $listadoExperiencias = json_encode($postulante->experiencias); $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); $listadoConflictoInteresEmpresaGuinez = json_encode($postulante->conflictoInteresEmpresaGuinez); $listadoConflictoInteresEmpresaContratista = json_encode($postulante->conflictoInteresEmpresaContratista); $listadoConflictoInteresInspeccionTecnica = json_encode($postulante->conflictoInteresInspeccionTecnica); $postulanteEnvioSondeo = false; if (isset($postulante->envioSondeo)) { $postulanteEnvioSondeo = true; $cantidadDePostulantesEnviadoParaAprobacion++; } else { $cantidadDePostulantesNoEnviadoParaAprobacion++; } $documentos = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadDocumentos = 0; $cantidadDocumentosEntregado = 0; $cantidadDocumentosNoEntregado = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Documento' && $documentosReq->acceso == 'RRHH/Solicitante De Solicitud') { $detalleDocumentoEntregado = false; $cantidadDocumentos++; foreach ($documentos as $documento) { if ($documento->documentoPostulante->id == $documentosReq->id) { if ($documento->estado == 'Entregado') { $detalleDocumentoEntregado = true; } } } if ($detalleDocumentoEntregado == true) { $cantidadDocumentosEntregado++; } else { $cantidadDocumentosNoEntregado++; } } } if ($cantidadDocumentosEntregado > 0) { $porcentaje = $cantidadDocumentosEntregado / $cantidadDocumentos; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoDocumento = ''; if ($cantidadDocumentos == $cantidadDocumentosEntregado) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } elseif ($cantidadDocumentosEntregado > 0) { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } else { $barraDeProgresoDocumento = '
' . '
' . '
' . '
' . $cantidadDocumentosEntregado . '/' . $cantidadDocumentos . '
'; } $actividades = $postulante->carpetaDeDocumentos->detalleDocumentosRequeridos; $cantidadActividades = 0; $cantidadActividadesApto = 0; $cantidadActividadesNoApto = 0; foreach ($documentosRequeridos as $documentosReq) { if ($documentosReq->tipo_documento == 'Actividad' && $documentosReq->acceso == 'RRHH/Solicitante De Solicitud') { $detalleActividadApto = false; $cantidadActividades++; foreach ($actividades as $actividad) { if ($actividad->documentoPostulante->id == $documentosReq->id) { if ($actividad->estado == 'Apto' || $actividad->estado == 'Apto c/observaciones') { $detalleActividadApto = true; } } } if ($detalleActividadApto == true) { $cantidadActividadesApto++; } else { $cantidadActividadesNoApto++; } } } if ($cantidadActividadesApto > 0) { $porcentaje = $cantidadActividadesApto / $cantidadActividades; } else { $porcentaje = 0; } $porcentaje = $porcentaje * 100; $barraDeProgresoActividad = ''; if ($cantidadActividades == $cantidadActividadesApto) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } elseif ($cantidadActividadesApto > 0) { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } else { $barraDeProgresoActividad = '
' . '
' . '
' . '
' . $cantidadActividadesApto . '/' . $cantidadActividades . '
'; } @endphp @if ($postulante->prioridad > 0) @else @endif @if ($postulante->estado == 'Descartado') @else @endif @if (isset($postulante->fecha_acceso_checklist_documentacion)) @else @endif @if (isset($postulante->fecha_envio_carpeta)) @else @endif @if (isset($postulante->fecha_aprobacion_carpeta)) @else @endif @endisset @endif @endforeach
DATOS POSTULANTESDATOS DE FORMALIZACIÓNDATOS DE FORMALIZACIÓNDATOS DE DOCUMENTOS/ACTIVIDADES
Prioridad Coordinación De Documentos/Actividades Rut Postulante Nombre PostulanteAcciones De FormalizaciónFecha De Formalización Observación De Formalización Acciones Documentos/Actividades Fecha Documentos/Actividades Días De Proceso Documentos/Actividades Fecha Envio Carpeta Días De Proceso Envio Carpeta Fecha Aprobación/Rechazo Carpeta Días De Proceso Aprobación/Rechazo Carpeta Avances Documentos Avances Actividades Estado Carpeta
{{ $postulante->prioridad . ' Prioridad' }}Sin PrioridadRechazado{{ $postulante->estado_coordinacion }}{{ $postulante->rut }} {{ $postulante->nombre }} @if (isset($postulante->fichaRespondida) && $postulante->estado == 'Aceptado' && Gate::check('postulante.edit'))
@endif
{{ fechaConFormatoDeChile($postulante->fecha_formalizacion) }} @isset($postulante->observacion_formalizacion) @endisset @if ($postulante->estado == 'Aceptado') @if (Gate::check('postulante.index-carpeta-documentos-postulantes') && isset($postulante->fichaRespondida)) @if ($postulante->estado_coordinacion == 'Coordinado') @if (count($postulante->referencias) > 0) @endif @endif @endif @endif {{ fechaConFormatoDeChile($postulante->fecha_acceso_checklist_documentacion) }}{{ $postulante->dias_atraso_acceso_checklist_documentacion }}{{ fechaConFormatoDeChile($postulante->fecha_envio_carpeta) }}{{ $postulante->dias_atraso_envio_carpeta }}{{ fechaConFormatoDeChile($postulante->fecha_aprobacion_carpeta) }}{{ $postulante->dias_atraso_aprobacion_carpeta }} {!! $barraDeProgresoDocumento !!} {!! $barraDeProgresoActividad !!} @switch($postulante->carpetaDeDocumentos->estado_carpeta) @case('Rechazado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Aprobado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Pendiente') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @endswitch
{{ $postulante->prioridad . ' Prioridad' }}Sin PrioridadRechazado{{ $postulante->estado_coordinacion }}{{ $postulante->rut }} {{ $postulante->nombre }} {{ fechaConFormatoDeChile($postulante->fecha_formalizacion) }} @isset($postulante->observacion_formalizacion) @endisset @if ($postulante->estado == 'Aceptado') @endif {{ fechaConFormatoDeChile($postulante->fecha_acceso_checklist_documentacion) }}{{ $postulante->dias_atraso_acceso_checklist_documentacion }}{{ fechaConFormatoDeChile($postulante->fecha_envio_carpeta) }}{{ $postulante->dias_atraso_envio_carpeta }}{{ fechaConFormatoDeChile($postulante->fecha_aprobacion_carpeta) }}{{ $postulante->dias_atraso_aprobacion_carpeta }} {!! $barraDeProgresoDocumento !!} {!! $barraDeProgresoActividad !!} @switch($postulante->carpetaDeDocumentos->estado_carpeta) @case('Rechazado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Aprobado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Pendiente') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @endswitch
{{ $postulante->prioridad . ' Prioridad' }}Sin PrioridadRechazado{{ $postulante->estado_coordinacion }}{{ $postulante->rut }} {{ $postulante->nombre }} {{ fechaConFormatoDeChile($postulante->fecha_formalizacion) }} @isset($postulante->observacion_formalizacion) @endisset @if ($postulante->estado == 'Aceptado') @if (Gate::check('postulante.index-carpeta-documentos-postulantes') && isset($postulante->fichaRespondida)) @if ($postulante->estado_coordinacion == 'Coordinado') @if (count($postulante->referencias) > 0) @endif @endif @endif @endif {{ fechaConFormatoDeChile($postulante->fecha_acceso_checklist_documentacion) }}{{ $postulante->dias_atraso_acceso_checklist_documentacion }}{{ fechaConFormatoDeChile($postulante->fecha_envio_carpeta) }}{{ $postulante->dias_atraso_envio_carpeta }}{{ fechaConFormatoDeChile($postulante->fecha_aprobacion_carpeta) }}{{ $postulante->dias_atraso_aprobacion_carpeta }} {!! $barraDeProgresoDocumento !!} {!! $barraDeProgresoActividad !!} @switch($postulante->carpetaDeDocumentos->estado_carpeta) @case('Rechazado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Aprobado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Pendiente') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @endswitch
{{ $postulante->prioridad . ' Prioridad' }}Sin PrioridadRechazado{{ $postulante->estado_coordinacion }}{{ $postulante->rut }} {{ $postulante->nombre }} {{ fechaConFormatoDeChile($postulante->fecha_formalizacion) }} @isset($postulante->observacion_formalizacion) @endisset @if ($postulante->estado == 'Aceptado') @endif {{ fechaConFormatoDeChile($postulante->fecha_acceso_checklist_documentacion) }}{{ $postulante->dias_atraso_acceso_checklist_documentacion }}{{ fechaConFormatoDeChile($postulante->fecha_envio_carpeta) }}{{ $postulante->dias_atraso_envio_carpeta }}{{ fechaConFormatoDeChile($postulante->fecha_aprobacion_carpeta) }}{{ $postulante->dias_atraso_aprobacion_carpeta }} {!! $barraDeProgresoDocumento !!} {!! $barraDeProgresoActividad !!} @switch($postulante->carpetaDeDocumentos->estado_carpeta) @case('Rechazado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Aprobado') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @case('Pendiente') {{ $postulante->carpetaDeDocumentos->estado_carpeta }} @break @endswitch
@stop @section('footer')
Intranet
Copyright © 2021 GuiñezIngeniería.cl. @stop @section('css') @stop @section('js') @if (\Session::has('msg')) @if (Session::get('msg') == 'exito') @endif @endif @stop