@php
$scoresArr3 = array();
@endphp
@foreach($comp as $compData)
@php
$ResAverage = 0;
$getEvalSubVal = $dataRaw[$compData->type]['head'];
foreach ($getEvalSubVal as $key => $value) {
$valueSubCK = isset($value['sub'])?true:false;
if ($valueSubCK) {
foreach ($value['sub'] as $keyVal => $valueVal) {
$getEvalSubVal[$key] = (($valueVal == 0)?$valueVal:$compData->totalStars);
}
}
}
$ResAverage = array_sum($getEvalSubVal)/count($getEvalSubVal);
$numForm = number_format($ResAverage, 2);
$totalRes = str_replace('.00', '', $numForm);
$scoresArr3[] = isset($totalRes)?$totalRes:0;
@endphp
Evaluator Overall Score: {{$totalRes}}/{{$compData->totalStars}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@endfor
@while($ResAverage>0)
@if($ResAverage >0.5)
@else
@endif
@php
$ResAverage--;
@endphp
@endwhile
Comments
@php
$compDataValFooter = ((isset($compData->dataFooter))?$compData->dataFooter:'');
$jsDecFoot = json_decode($compDataValFooter, true);
$evalDataFooter = $dataRaw[$compData->type]['foot'];
print '';
@endphp
@endforeach
@php
$scoresFinal3 = array_sum($scoresArr3)/count($scoresArr3);
$numFormAveRaw3 = number_format($scoresFinal3, 2);
print '';
@endphp