@php $cantidadColSpanSeccion = 1; $cantidadCeldaPuntaje = count($puntajesPermitidos) + 1; $resultadoDivisionPuntaje = null; $tamanoAspectoEvaluar = 0; $tamanoCelda = 0; if ($cantidadCeldaPuntaje == 2 || $cantidadCeldaPuntaje == 3 || $cantidadCeldaPuntaje == 4 || $cantidadCeldaPuntaje == 6) { $resultadoDivisionPuntaje = 12 / $cantidadCeldaPuntaje; switch ($cantidadCeldaPuntaje) { case 2: $tamanoAspectoEvaluar = 50; $tamanoCelda = 50; break; case 3: $tamanoAspectoEvaluar = 40; $tamanoCelda = 30; break; case 4: $tamanoAspectoEvaluar = 31; $tamanoCelda = 23; break; case 6: $tamanoAspectoEvaluar = 20; $tamanoCelda = 16; break; } } @endphp @if ($cantidadCeldaPuntaje == 2 || $cantidadCeldaPuntaje == 3 || $cantidadCeldaPuntaje == 4 || $cantidadCeldaPuntaje == 6) @foreach ($puntajesPermitidos as $puntaje) @php $cantidadColSpanSeccion = $cantidadColSpanSeccion + 2; @endphp @endforeach @foreach ($fichaEntrevistaTecnica->seccionesFichaEntrevistaTecnicaOrdenanos as $seccion) @php $totalPorcentajeSeccion = 0; @endphp @foreach ($seccion->preguntasFichaEntrevistaTecnicaOrdenanos as $pregunta) @php $puntajeMaximoTotalSeccion = 0; $valorPuntajeOpcionTotalSeccion = 0; if ($resultadoDivisionPuntaje % 2 == 0) { $colspanNombrePuntaje = $resultadoDivisionPuntaje / 2; $colspanValorPuntaje = $resultadoDivisionPuntaje / 2; } else { $colspanNombrePuntaje = $resultadoDivisionPuntaje - 1; $colspanValorPuntaje = 1; } @endphp @foreach ($puntajesPermitidos as $puntaje) @php $idOpcion = ''; $valorOpcion = ''; $valorPuntajeOpcion = 0; $opcionTieneContenidoEnEstePuntaje = false; $puntajeMaximo = 0; $celdaConPuntaje = false; foreach ($pregunta->opcionesFichaEntrevistaTecnicaOrdenanos as $opcion) { if ($puntaje['puntaje_opcion'] == $opcion->puntaje) { $idOpcion = $opcion->id; $valorOpcion = $opcion->opcion; $valorPuntajeOpcion = $opcion->puntaje; $opcionTieneContenidoEnEstePuntaje = true; } if ($opcion->puntaje > $puntajeMaximo) { $puntajeMaximo = $opcion->puntaje; } } @endphp @if ($opcionTieneContenidoEnEstePuntaje == true) @foreach ($fichaRespondida->preguntasRespondidas as $preguntaRespondida) @if ($preguntaRespondida->id_seccion == $seccion->id && $preguntaRespondida->id_pregunta == $pregunta->id && $preguntaRespondida->id_opcion == $idOpcion) @php $celdaConPuntaje = true; @endphp @endif @endforeach @if ($celdaConPuntaje == true) @php $puntajeMaximoTotalSeccion = $puntajeMaximo; $valorPuntajeOpcionTotalSeccion = $valorPuntajeOpcion; @endphp @else @endif @else @endif @endforeach @php $totalSeccion = $pregunta->porcentaje / $puntajeMaximoTotalSeccion; $totalSeccion = $totalSeccion * $valorPuntajeOpcionTotalSeccion; $totalSeccion = round($totalSeccion); $totalPorcentajeSeccion += $totalSeccion; break; @endphp @endforeach @endforeach @endif

FICHA ENTREVISTA TÉCNICA

Código F-DRRHH-02
Nombre del postulante: {{ $postulante->nombre }}
Cargo al que postula: {{ $postulante->cargo->cargo }}
Nombre Entrevistador: {{ $fichaRespondida->nombre_entrevistador }}
Fecha: {{ fechaConFormatoDeChile($fichaRespondida->created_at) }}
Aspectos a Evaluar{{ $puntaje['puntaje_opcion'] }}ptos
{{ $seccion->seccion }} {{ $seccion->porcentaje }}%
{{ $pregunta->pregunta }}{{ $valorOpcion }}

{{ $valorPuntajeOpcion }}