@extends('adminlte::page') @section('plugins.Datatables', true) @section('plugins.Sweetalert2', true) @section('plugins.Select1', true) @section('plugins.Sortable', true) @section('plugins.ClockPicker', true) @section('plugins.momentJs', true) @section('plugins.icheck', true) @section('title', 'Intranet | Detalle Postulantes Para el Cargo ' . $cargo->cargo) @section('content_header')
@stop @section('content')
@if ($solicitudDeReclutamiento->estado == 'Pendiente')
{{ $solicitudDeReclutamiento->estado }}
@endif @if ($solicitudDeReclutamiento->estado == 'Aprobado')
{{ $solicitudDeReclutamiento->estado }}
@endif @if ($solicitudDeReclutamiento->estado == 'Rechazado')
{{ $solicitudDeReclutamiento->estado }}
@endif @if ($solicitudDeReclutamiento->estado == 'Anulada')
{{ $solicitudDeReclutamiento->estado }}
@endif
@csrf
@if (count($enviosSondeos) > 0)
@php $cantidadDeSondeo = 0; @endphp @foreach ($enviosSondeos 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; $cantidadCargoAvances++; $numeroVacantes = $cargo->numero_vacante; $cantidadPostulantePendiente = 0; $cantidadPostulanteDescartado = 0; $cantidadPostulanteAceptado = 0; $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido = 0; $cantidadPostulanteConFichaTecnicaEstablecido = 0; $cantidadPostulanteCarpetaEnviada = 0; $cantidadPostulanteCarpetaAprobada = 0; foreach ($postulantesParaDetalle as $postulante) { if ($postulante->estado == 'Pendiente') { $cantidadPostulantePendiente++; } elseif ($postulante->estado == 'Descartado') { $cantidadPostulanteDescartado++; if (isset($postulante->fecha_entrevista_tecnica)) { $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido++; if (isset($postulante->fichaRespondida)) { $cantidadPostulanteConFichaTecnicaEstablecido++; } } } elseif ($postulante->estado == 'Aceptado') { $cantidadPostulanteAceptado++; if (isset($postulante->fecha_entrevista_tecnica)) { $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido++; if (isset($postulante->fichaRespondida)) { $cantidadPostulanteConFichaTecnicaEstablecido++; 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 .'
'; } elseif ($cantidadPostulantePendiente > 0) { $barraDeProgresoPostulantePendiente = '
' . '
' . '
' . '
' . $cantidadPostulantePendiente .'
'; } else { $barraDeProgresoPostulantePendiente = '
' . '
' . '
' . '
' . $cantidadPostulantePendiente .'
'; } //---------------Avances Postulantes Descartado------------------- if ($cantidadPostulanteDescartado > 0) { $porcentajePostulanteDescartado = $cantidadPostulanteDescartado / $numeroVacantes; } else { $porcentajePostulanteDescartado = 0; } $porcentajePostulanteDescartado = $porcentajePostulanteDescartado * 100; $barraDeProgresoPostulanteDescartado = ''; if ($cantidadPostulanteDescartado >= $numeroVacantes) { $barraDeProgresoPostulanteDescartado = '
' . '
' . '
' . '
' . $cantidadPostulanteDescartado .'
'; } elseif ($cantidadPostulanteDescartado > 0) { $barraDeProgresoPostulanteDescartado = '
' . '
' . '
' . '
' . $cantidadPostulanteDescartado .'
'; } else { $barraDeProgresoPostulanteDescartado = '
' . '
' . '
' . '
' . $cantidadPostulanteDescartado .'
'; } //---------------Avances Postulantes Aceptado------------------- if ($cantidadPostulanteAceptado > 0) { $porcentajePostulanteAceptado = $cantidadPostulanteAceptado / $numeroVacantes; } else { $porcentajePostulanteAceptado = 0; } $porcentajePostulanteAceptado = $porcentajePostulanteAceptado * 100; $barraDeProgresoPostulanteAceptado = ''; if ($cantidadPostulanteAceptado >= $numeroVacantes) { $barraDeProgresoPostulanteAceptado = '
' . '
' . '
' . '
' . $cantidadPostulanteAceptado .'
'; } elseif ($cantidadPostulanteAceptado > 0) { $barraDeProgresoPostulanteAceptado = '
' . '
' . '
' . '
' . $cantidadPostulanteAceptado . '
'; } else { $barraDeProgresoPostulanteAceptado = '
' . '
' . '
' . '
' . $cantidadPostulanteAceptado . '
'; } //---------------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 . '
'; } elseif ($cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido > 0) { $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido . '
'; } else { $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFechaHoraEntrevistaTecnicaEstablecido . '
'; } //---------------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 . '
'; } elseif ($cantidadPostulanteConFichaTecnicaEstablecido > 0) { $barraDeProgresoPostulanteConFichaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFichaTecnicaEstablecido . '
'; } else { $barraDeProgresoPostulanteConFichaTecnicaEstablecido = '
' . '
' . '
' . '
' . $cantidadPostulanteConFichaTecnicaEstablecido . '
'; } //---------------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
# Cargo Vacantes Pendientes de revisión Descartados Aceptados Citados a entrevista Aprobados en entrevista Carpeta entregada Carpeta aprobada
{{ $cantidadCargoAvances }} {{ $cargo->cargo }} {{ $cargo->numero_vacante }} {!! $barraDeProgresoPostulantePendiente !!} {!! $barraDeProgresoPostulanteDescartado !!} {!! $barraDeProgresoPostulanteAceptado !!} {!! $barraDeProgresoPostulanteConFechaHoraEntrevistaTecnicaEstablecido !!} {!! $barraDeProgresoPostulanteConFichaTecnicaEstablecido !!} {!! $barraDeProgresoPostulanteCarpetaEnviada !!} {!! $barraDeProgresoPostulanteCarpetaAprobada !!}
@if (isset($solicitudDeReclutamiento->autorizador))
@else
@endif @if (isset($solicitudDeReclutamiento->responsableSondeo))
@else
@endif
@if ($cargo->experiencia_laboral > 0)
@else
@endif
@if (count($conocimientos) > 0)
@php $cantidadConocimientoDelCargo = 0; @endphp @foreach ($conocimientos as $cono) @php $cantidadConocimientoDelCargo++; @endphp @endforeach
# Conocimientos y/o certificaciones Añadidos
{{ $cantidadConocimientoDelCargo }} {{ $cono->conocimiento_certificacion }}
@endif @if (count($bonos) > 0)
@php $cantidadBonosDelCargo = 0; @endphp @foreach ($bonos as $bon) @php $cantidadBonosDelCargo++; @endphp @endforeach
# Bonos Asociados Añadidos
{{ $cantidadBonosDelCargo }} {{ $bon->bono }}
@endif @isset($cargo->observacion)
@endisset
#
EVALUACIONES
@php $cantidadModalEvaluacion = 0; @endphp @foreach ($cargo->evaluaciones as $detalleEvaluacion) @if ($detalleEvaluacion->opcion=='Si') @php $cantidadEvaluacionEsPar = false; $cantidadModalEvaluacion++; if ($cantidadModalEvaluacion % 2 == 0) { $cantidadEvaluacionEsPar = true; } else { $cantidadEvaluacionEsPar = false; } @endphp @if ($cantidadEvaluacionEsPar == false)
{{ $cantidadModalEvaluacion }}
{{ $detalleEvaluacion->evaluacion }}
@else
{{ $cantidadModalEvaluacion }}
{{ $detalleEvaluacion->evaluacion }}
@endif @endif @endforeach
@if ($solicitudDeReclutamiento->estado == 'Rechazado')
@endif @if ($solicitudDeReclutamiento->estado == 'Anulada')
@endif
@if ($solicitudDeReclutamiento->id_usuario == auth()->user()->id) @else @endif @if ($solicitudDeReclutamiento->id_usuario == auth()->user()->id) @endif @php $cantidadPostulante = 0; $cantidadDePostulanteSinSondeo=0; $cantidadDePostulanteConSondeo=0; $cantidadDePostulanteConFichaEntrevistaTecnica=0; $cantidadDePostulantePendiente=0; @endphp @foreach ($postulantesParaDetalle as $postulante) @php $cantidadPostulante++; if (isset($postulante->envioSondeo)) { $cantidadDePostulanteConSondeo++; }else{ $cantidadDePostulanteSinSondeo++; } if(isset($postulante->fichaRespondida) && count($postulante->carpetaDeDocumentos->detalleDocumentosRequeridos)==0 && count($postulante->referencias)==0){ $cantidadDePostulanteConFichaEntrevistaTecnica++; } if($postulante->estado == 'Pendiente'){ $cantidadDePostulantePendiente++; } $seVisualizaPostulante=false; if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.edit-referencia') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.editar-carpeta-documentos-postulantes')) { $seVisualizaPostulante=true; }else if($solicitudDeReclutamiento->id_usuario == auth()->user()->id){ if(isset($postulante->envioSondeo)){ $seVisualizaPostulante=true; } }else if(isset($postulante->envioSondeo)){ $seVisualizaPostulante=true; } $listadoArchivos = json_encode($postulante->archivos); $listadoReferencias = json_encode($postulante->referencias); @endphp @if ($seVisualizaPostulante==true) @if ($solicitudDeReclutamiento->id_usuario == auth()->user()->id) @if ($postulante->estado == 'Pendiente') @else @endif @endif @if (isset($postulante->fecha_envio_sondeo)) @else @endif @if (isset($postulante->fecha_postulante_aceptado)) @else @endif @if (isset($postulante->dias_atraso_postulante_aceptado)) @else @endif @if (isset($postulante->usuarioQueAceptoElPostulante)) @else @endif @if (isset($postulante->dias_atraso_establecer_fecha_entrevista_tecnica )) @else @endif @if (isset($postulante->fecha_entrevista_tecnica)) @else @endif @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @else @endif @if (isset($postulante->dias_atraso_responder_ficha_entrevista_tecnica )) @else @endif @if (isset($postulante->fichaRespondida)) @if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio') @elseif($postulante->fichaRespondida->estimacion == 'Regular') @elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente') @endif @else @endif @if (isset($postulante->fichaRespondida)) @if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio') @elseif($postulante->fichaRespondida->estimacion == 'Regular') @elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente') @endif @else @endif @endif @endforeach
DATOS DE POSTULANTESDATOS DE POSTULANTESDATOS DE APROBACIÓN DATOS DE ENTREVISTA TÉCNICA
Acciones Rut del Postulante Nombre del Postulante Cargo del Postulante Status General Fecha Envío Sondeo Fecha Aprobación Días de Proceso del Envío Sondeo 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 Técnica Fecha y Hora Entrevista Técnica Fecha de Cuando se Respondió la Ficha Días de Proceso Ficha Resultado Ficha Entrevista Técnica Estado Ficha Entrevista Técnica
{{ $postulante->rut }} {{ $postulante->nombre }} {{$cargo->cargo}} @if ($postulante->estado=="Pendiente") @if (isset($postulante->id_envio_sondeo)) Sondeo enviado @else @if ($postulante->referido==true) Postulante referido @else Postulante sondeado @endif @endif @else @if ($postulante->estado == 'Descartado') Sondeo rechazado @else @if (isset($postulante->fecha_entrevista_tecnica)) @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @if ($postulante->estado == 'Descartado') Entrevista rechazada @else @if (count($postulante->referencias)>0) @if (isset($postulante->fecha_formalizacion)) @if (isset($postulante->fecha_envio_carpeta)) @if (isset($postulante->fecha_aprobacion_carpeta)) @if ($postulante->carpetaDeDocumentos->estado_carpeta=="Aprobado") Carpeta aceptada @elseif ($postulante->carpetaDeDocumentos->estado_carpeta=="Rechazado") Carpeta rechazada @endif @else Carpeta en revisión @endif @else @if (count($postulante->carpetaDeDocumentos->examenesActividadesRechazados)>0) Exámenes alterados @else @if (count($postulante->carpetaDeDocumentos->examenesActividadesPendientes)>0) Documentos pendientes @else Formalizado, exámenes y actividades en proceso @endif @endif @endif @else Formalización pendiente @endif @else Referencia pendiente @endif @endif @else Entrevista coordinada @endif @else Entrevista pendiente @endif @endif @endif {{fechaConFormatoDeChile($postulante->fecha_envio_sondeo)}}{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }}{{$postulante->dias_atraso_envio_sondeo}}{{ $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 (isset($postulante->envioSondeo)) @php $habilitarOpcionDetalleFichaEntrevistaTecnica=false; $habilitarOpcionAnularFichaEntrevistaTecnica=false; $habilitarOpcionEstablecerFechaFichaEntrevistaTecnica=false; $habilitarOpcionCambiarFechaFichaEntrevistaTecnica=false; $habilitarOpcionResponderFichaEntrevistaTecnica=false; if(isset($postulante->fichaRespondida)){ $habilitarOpcionDetalleFichaEntrevistaTecnica=true; if(isset($solicitudDeReclutamiento->responsableSondeo)){ if(count($postulante->carpetaDeDocumentos->detalleDocumentosRequeridos)==0 && count($postulante->referencias) == 0){ if($solicitudDeReclutamiento->estado_cierre == 'Abierta' && $postulante->estado_cierre== 'Abierta'){ if(Gate::check('postulante.anular-ficha-entrevista-tecnica')){ $habilitarOpcionAnularFichaEntrevistaTecnica=true; } if(Gate::check('postulante.edit')){ if(isset($postulante->fecha_entrevista_tecnica)){ $habilitarOpcionCambiarFechaFichaEntrevistaTecnica=true; }else{ $habilitarOpcionEstablecerFechaFichaEntrevistaTecnica=true; } } } } } }else{ if(isset($solicitudDeReclutamiento->responsableSondeo)){ if(count($postulante->carpetaDeDocumentos->detalleDocumentosRequeridos)==0 && count($postulante->referencias) == 0){ if($solicitudDeReclutamiento->estado_cierre == 'Abierta' && $postulante->estado_cierre== 'Abierta'){ if(Gate::check('postulante.edit')){ if(isset($postulante->fecha_entrevista_tecnica)){ $habilitarOpcionCambiarFechaFichaEntrevistaTecnica=true; }else{ $habilitarOpcionEstablecerFechaFichaEntrevistaTecnica=true; } } } } } } if($postulante->fecha_establecer_fecha_entrevista_tecnica){ if($solicitudDeReclutamiento->id_usuario == auth()->user()->id){ if(isset($postulante->envioSondeo)){ if($solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Aceptado'){ if(isset($postulante->fichaRespondida)){ $habilitarOpcionDetalleFichaEntrevistaTecnica=true; }else{ if($solicitudDeReclutamiento->estado_cierre == 'Abierta' && $postulante->estado_cierre== 'Abierta'){ $habilitarOpcionResponderFichaEntrevistaTecnica=true; } } } } }else{ if(isset($postulante->envioSondeo)){ if($solicitudDeReclutamiento->estado == 'Aprobado' && isset($postulante->fichaRespondida)){ $habilitarOpcionDetalleFichaEntrevistaTecnica=true; } } } } @endphp @if ($habilitarOpcionDetalleFichaEntrevistaTecnica==true || $habilitarOpcionAnularFichaEntrevistaTecnica==true || $habilitarOpcionEstablecerFechaFichaEntrevistaTecnica==true || $habilitarOpcionCambiarFechaFichaEntrevistaTecnica==true || $habilitarOpcionResponderFichaEntrevistaTecnica==true)
@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 }}{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }}{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }}AprobadoAprobadoRechazado
@if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.edit-referencia') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.editar-carpeta-documentos-postulantes')) @endif @if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.edit-referencia') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.editar-carpeta-documentos-postulantes')) @endif @foreach ($postulantesParaDetalle as $postulante) @php $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 . '
'; } $seVisualizaPostulante=false; if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.edit-referencia') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.editar-carpeta-documentos-postulantes')) { $seVisualizaPostulante=true; }else if($solicitudDeReclutamiento->id_usuario == auth()->user()->id){ if(isset($postulante->envioSondeo)){ $seVisualizaPostulante=true; } }else if(isset($postulante->envioSondeo)){ $seVisualizaPostulante=true; } @endphp @if ($seVisualizaPostulante==true) @if (isset($postulante->fecha_formalizacion)) @else @endif @if (isset($postulante->observacion_formalizacion)) @else @endif @if (isset($postulante->fecha_envio_sondeo)) @else @endif @if (isset($postulante->fecha_postulante_aceptado)) @else @if (isset($postulante->fecha_postulante_aceptado_2)) @else @endif @endif @if (isset($postulante->fecha_establecer_fecha_entrevista_tecnica)) @else @endif @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @else @endif @if (isset($postulante->fecha_ingreso_referencias)) @else @endif @if (isset($postulante->fecha_establecer_fecha_formalizacion)) @else @endif @if (isset($postulante->fecha_envio_carpeta)) @else @endif @if (isset($postulante->fecha_aprobacion_carpeta)) @else @endif @if (isset($postulante->fecha_cierre)) @else @endif @if (Gate::check('postulante.edit') || Gate::check('postulante.destroy') || Gate::check('postulante.create') || Gate::check('postulante.edit-referencia') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.index-carpeta-documentos-postulantes') || Gate::check('postulante.editar-carpeta-documentos-postulantes')) @endif @endif @endforeach
DATOS DE POSTULANTES FECHAS DE PROCESOSDÍAS DE PROCESOS
Acciones Rut del Postulante Nombre del Postulante Cargo del Postulante Status General Creación de la Solicitud Envío Sondeo Aceptación/Descarte Coordinación de Entrevista Técnica Entrevista Técnica Respondida Ingreso de Referencias Formalización Envío de Carpeta Aprobación de Carpeta Cierre del ProcesoEnvío Sondeo Aceptación/Descarte Coordinación de Entrevista Técnica Entrevista Técnica Respondida Ingreso de Referencias Formalización Envío de Carpeta Aprobación de Carpeta Cierre del Proceso
{{ $postulante->rut }} {{ $postulante->nombre }} {{$cargo->cargo}} @if ($postulante->estado=="Pendiente") @if (isset($postulante->id_envio_sondeo)) Sondeo enviado @else @if ($postulante->referido==true) Postulante referido @else Postulante sondeado @endif @endif @else @if ($postulante->estado == 'Descartado') Sondeo rechazado @else @if (isset($postulante->fecha_entrevista_tecnica)) @if (isset($postulante->fecha_responder_ficha_entrevista_tecnica)) @if ($postulante->estado == 'Descartado') Entrevista rechazada @else @if (count($postulante->referencias)>0) @if (isset($postulante->fecha_formalizacion)) @if (isset($postulante->fecha_envio_carpeta)) @if (isset($postulante->fecha_aprobacion_carpeta)) @if ($postulante->carpetaDeDocumentos->estado_carpeta=="Aprobado") Carpeta aceptada @elseif ($postulante->carpetaDeDocumentos->estado_carpeta=="Rechazado") Carpeta rechazada @endif @else Carpeta en revisión @endif @else @if (count($postulante->carpetaDeDocumentos->examenesActividadesRechazados)>0) Exámenes alterados @else @if (count($postulante->carpetaDeDocumentos->examenesActividadesPendientes)>0) Documentos pendientes @else Formalizado, exámenes y actividades en proceso @endif @endif @endif @else Formalización pendiente @endif @else Referencia pendiente @endif @endif @else Entrevista coordinada @endif @else Entrevista pendiente @endif @endif @endif {{fechaConFormatoDeChile($postulante->created_at)}}{{fechaConFormatoDeChile($postulante->fecha_envio_sondeo)}}{{fechaConFormatoDeChile($postulante->fecha_postulante_aceptado)}}{{fechaConFormatoDeChile($postulante->fecha_postulante_aceptado_2)}}{{fechaConFormatoDeChile($postulante->fecha_establecer_fecha_entrevista_tecnica)}}{{fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica)}}{{fechaConFormatoDeChile($postulante->fecha_ingreso_referencias)}}{{fechaConFormatoDeChile($postulante->fecha_establecer_fecha_formalizacion)}}{{fechaConFormatoDeChile($postulante->fecha_envio_carpeta)}}{{fechaConFormatoDeChile($postulante->fecha_aprobacion_carpeta)}}{{fechaConFormatoDeChile($postulante->fecha_cierre)}}{{$postulante->dias_atraso_envio_sondeo}} {{$postulante->dias_atraso_postulante_aceptado}} {{$postulante->dias_atraso_establecer_fecha_entrevista_tecnica}} {{$postulante->dias_atraso_responder_ficha_entrevista_tecnica}} {{$postulante->dias_atraso_ingreso_referencias}} {{$postulante->dias_atraso_establecer_fecha_formalizacion}} {{$postulante->dias_atraso_envio_carpeta}} {{$postulante->dias_atraso_aprobacion_carpeta}} {{$postulante->dias_atraso_cierre}}
@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