@extends('adminlte::page') @section('plugins.Sweetalert2', true) @section('plugins.Select1', true) @section('title', 'Intranet | Ficha Entrevista Tecnica') @section('content_header')
@stop @php $listadoTotalesPorcentajeSeccion=[]; @endphp @section('content')
@csrf
@php $cantidadColSpanSeccion = 1; @endphp @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; @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; @endphp @endforeach @php $listadoTotalesPorcentajeSeccion[]=$totalPorcentajeSeccion; @endphp @endforeach @if($postulante->fichaRespondida->porcentaje>=78) @else @if($postulante->fichaRespondida->porcentaje>=67) @else @endif @endif
Aspectos a Evaluar{{ $puntaje['puntaje_opcion'] }}ptos
{{ $seccion->seccion }} {{ $seccion->porcentaje }}%
{{ $pregunta->pregunta }}{{ $valorOpcion }}

{{ $valorPuntajeOpcion }}

Total {{ $totalPorcentajeSeccion }}%
Total Final {{$postulante->fichaRespondida->porcentaje}}% {{$postulante->fichaRespondida->estimacion}}Total Final {{$postulante->fichaRespondida->porcentaje}}% {{$postulante->fichaRespondida->estimacion}}Total Final {{$postulante->fichaRespondida->porcentaje}}% {{$postulante->fichaRespondida->estimacion}}
IDENTIFICACIÓN DE ESTIMACIONES
0% - 55 % Muy Deficiente
56%- 66% Deficiente
67% - 77% Regular
78% - 88% Satisfactorio
89% y 100% Muy Satisfactorio
@stop @section('footer')
Intranet
Copyright © 2021 GuiñezIngeniería.cl. @stop @section('css') @stop @section('js') @stop