@php
$cantidadPostulante = 0;
$cantidadDePostulanteSinSondeo=0;
$cantidadDePostulanteConSondeo=0;
$cantidadDePostulanteConFichaEntrevistaTecnica=0;
$cantidadDePostulantePendiente=0;
@endphp
@foreach ($cargo->postulantes 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++;
}
$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);
@endphp
@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'))
| {{ $postulante->id }} |
@if ($postulante->prioridad > 0)
{{ $postulante->prioridad . ' Prioridad' }} |
@else
Sin Prioridad |
@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 }} |
@if ($postulante->discapacidad == true)
Si |
@else
No |
@endif
{{ $postulante->nombre_discapacidad }} |
{{ $postulante->carnet_discapacidad }} |
{{ $postulante->disponibilidad }} |
@if ($postulante->experiencia_general > 0)
{{ $postulante->experiencia_general }} Años |
@else
Sin Experiencia |
@endif
@if ($postulante->experiencia_especifica > 0)
{{ $postulante->experiencia_especifica }} Años |
@else
Sin Experiencia |
@endif
@if (isset($postulante->fecha_postulante_aceptado))
{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }} |
@else
|
@endif
@if (isset($postulante->dias_atraso_postulante_aceptado))
{{ $postulante->dias_atraso_postulante_aceptado }} |
@else
|
@endif
@if (isset($postulante->usuarioQueAceptoElPostulante))
{{ $postulante->usuarioQueAceptoElPostulante->name }} |
@else
|
@endif
@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')
@if (count($postulante->carpetaDeDocumentos->detalleDocumentosRequeridos)==0 || isset($postulante->fichaRespondida))
@endif
@elseif($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Descartado')
@if (isset($postulante->fichaRespondida))
@endif
@endif
@else
@if (isset($postulante->fichaRespondida))
@endif
@endif
|
@if (isset($postulante->dias_atraso_establecer_fecha_entrevista_tecnica ))
{{ $postulante->dias_atraso_establecer_fecha_entrevista_tecnica }} |
@else
|
@endif
@if (isset($postulante->fecha_entrevista_tecnica))
{{ fechaHoraConFormatoDeChile($postulante->fecha_entrevista_tecnica) }} |
@else
|
@endif
@if (isset($postulante->fecha_responder_ficha_entrevista_tecnica))
{{ fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica) }} |
@else
|
@endif
@if (isset($postulante->dias_atraso_responder_ficha_entrevista_tecnica ))
{{ $postulante->dias_atraso_responder_ficha_entrevista_tecnica }} |
@else
|
@endif
@if (isset($postulante->fichaRespondida))
@if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@elseif($postulante->fichaRespondida->estimacion == 'Regular')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@endif
@else
|
@endif
@if (isset($postulante->fichaRespondida))
@if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio')
Aprobado |
@elseif($postulante->fichaRespondida->estimacion == 'Regular')
Aprobado |
@elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente')
Rechazado |
@endif
@else
|
@endif
@elseif($cargo->solicitudDeReclutamiento->id_usuario == auth()->user()->id)
@isset($postulante->envioSondeo)
| {{ $postulante->id }} |
@if ($postulante->prioridad > 0)
{{ $postulante->prioridad . ' Prioridad' }} |
@else
Sin Prioridad |
@endif
@if ($postulante->estado == 'Pendiente')
@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 }} |
@if ($postulante->discapacidad == true)
Si |
@else
No |
@endif
{{ $postulante->nombre_discapacidad }} |
{{ $postulante->carnet_discapacidad }} |
{{ $postulante->disponibilidad }} |
@if ($postulante->experiencia_general > 0)
{{ $postulante->experiencia_general }} Años |
@else
Sin Experiencia |
@endif
@if ($postulante->experiencia_especifica > 0)
{{ $postulante->experiencia_especifica }} Años |
@else
Sin Experiencia |
@endif
@if (isset($postulante->fecha_postulante_aceptado))
{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }} |
@else
|
@endif
@if (isset($postulante->dias_atraso_postulante_aceptado))
{{ $postulante->dias_atraso_postulante_aceptado }} |
@else
|
@endif
@if (isset($postulante->usuarioQueAceptoElPostulante))
{{ $postulante->usuarioQueAceptoElPostulante->name }} |
@else
|
@endif
@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 ($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Aceptado')
@if (isset($postulante->fichaRespondida))
@else
@endif
@elseif($cargo->solicitudDeReclutamiento->estado == 'Aprobado' && $postulante->estado == 'Descartado')
@if (isset($postulante->fichaRespondida))
@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))
@if (isset($postulante->fichaRespondida))
@endif
@endif
@endif
|
@if (isset($postulante->dias_atraso_establecer_fecha_entrevista_tecnica ))
{{ $postulante->dias_atraso_establecer_fecha_entrevista_tecnica }} |
@else
|
@endif
@if (isset($postulante->fecha_entrevista_tecnica))
{{ fechaHoraConFormatoDeChile($postulante->fecha_entrevista_tecnica) }} |
@else
|
@endif
@if (isset($postulante->fecha_responder_ficha_entrevista_tecnica))
{{ fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica) }} |
@else
|
@endif
@if (isset($postulante->dias_atraso_responder_ficha_entrevista_tecnica ))
{{ $postulante->dias_atraso_responder_ficha_entrevista_tecnica }} |
@else
|
@endif
@if (isset($postulante->fichaRespondida))
@if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@elseif($postulante->fichaRespondida->estimacion == 'Regular')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@endif
@else
|
@endif
@if (isset($postulante->fichaRespondida))
@if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio')
Aprobado |
@elseif($postulante->fichaRespondida->estimacion == 'Regular')
Aprobado |
@elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente')
Rechazado |
@endif
@else
|
@endif
@endisset
@else
@isset($postulante->envioSondeo)
| {{ $postulante->id }} |
@if ($postulante->prioridad > 0)
{{ $postulante->prioridad . ' Prioridad' }} |
@else
Sin Prioridad |
@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 }} |
@if ($postulante->discapacidad == true)
Si |
@else
No |
@endif
{{ $postulante->nombre_discapacidad }} |
{{ $postulante->carnet_discapacidad }} |
{{ $postulante->disponibilidad }} |
@if ($postulante->experiencia_general > 0)
{{ $postulante->experiencia_general }} Años |
@else
Sin Experiencia |
@endif
@if ($postulante->experiencia_especifica > 0)
{{ $postulante->experiencia_especifica }} Años |
@else
Sin Experiencia |
@endif
@if (isset($postulante->fecha_postulante_aceptado))
{{ fechaConFormatoDeChile($postulante->fecha_postulante_aceptado) }} |
@else
|
@endif
@if (isset($postulante->dias_atraso_postulante_aceptado))
{{ $postulante->dias_atraso_postulante_aceptado }} |
@else
|
@endif
@if (isset($postulante->usuarioQueAceptoElPostulante))
{{ $postulante->usuarioQueAceptoElPostulante->name }} |
@else
|
@endif
@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->fichaRespondida))
@endif
|
@if (isset($postulante->dias_atraso_establecer_fecha_entrevista_tecnica ))
{{ $postulante->dias_atraso_establecer_fecha_entrevista_tecnica }} |
@else
|
@endif
@if (isset($postulante->fecha_entrevista_tecnica))
{{ fechaHoraConFormatoDeChile($postulante->fecha_entrevista_tecnica) }} |
@else
|
@endif
@if (isset($postulante->fecha_responder_ficha_entrevista_tecnica))
{{ fechaConFormatoDeChile($postulante->fecha_responder_ficha_entrevista_tecnica) }} |
@else
|
@endif
@if (isset($postulante->dias_atraso_responder_ficha_entrevista_tecnica ))
{{ $postulante->dias_atraso_responder_ficha_entrevista_tecnica }} |
@else
|
@endif
@if (isset($postulante->fichaRespondida))
@if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@elseif($postulante->fichaRespondida->estimacion == 'Regular')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente')
{{ $postulante->fichaRespondida->porcentaje . '% ' . $postulante->fichaRespondida->estimacion }} |
@endif
@else
|
@endif
@if (isset($postulante->fichaRespondida))
@if ($postulante->fichaRespondida->estimacion == 'Muy Satisfactorio' || $postulante->fichaRespondida->estimacion == 'Satisfactorio')
Aprobado |
@elseif($postulante->fichaRespondida->estimacion == 'Regular')
Aprobado |
@elseif($postulante->fichaRespondida->estimacion == 'Muy Deficiente' || $postulante->fichaRespondida->estimacion == 'Deficiente')
Rechazado |
@endif
@else
|
@endif
@endisset
@endif
@endforeach