@php
$coverReports = $data->coverReports;
$coverReports = str_replace('{', '', $coverReports);
$coverReports = str_replace('}', '', $coverReports);
$coverReports = str_replace('candName', ''.$cand->candidate_name.'', $coverReports);
$coverReports = str_replace('candCompany', '123'.$cand->company.'', $coverReports);
$coverReports = str_replace('candRole', ''.$cand->role.'', $coverReports);
$coverReports = str_replace('candRoleAssessed', ''.$cand->role_assessed.'', $coverReports);
$coverReports = str_replace('dateReport', ''.Date('Y-m-d').'', $coverReports);
print_r($coverReports);
@endphp
Confidentiality Notice: This Leadership Fit and Readiness Report gives you deep insight into how a candidate profiles against the competencies you have selected for this particular role. It contains sensitive personal information, and should be kept in a secure location with minimal access. The report should be disposed of confidentiality once the results are no longer valid.
@php
$dataIntro = $data->introduction;
$dataIntro = str_replace('{', '', $dataIntro);
$dataIntro = str_replace('}', '', $dataIntro);
$dataIntro = str_replace('candName', '
'.$cand->candidate_name.'', $dataIntro);
$dataIntro = str_replace('candCompany', '
'.$cand->company.'', $dataIntro);
$dataIntro = str_replace('candRole', '
'.$cand->role.'', $dataIntro);
$dataIntro = str_replace('candRoleAssessed', '
'.$cand->role_assessed.'', $dataIntro);
$dataIntro = str_replace('dateReport', '
'.Date('Y-m-d').'', $dataIntro);
$dataIntro = str_replace('newPage', '
', $dataIntro);
print_r($dataIntro);
function get_percentage($total, $number){
if ( $total > 0 ) {
return round(($number * 100) / $total, 2);
}
else {
return 0;
}
}
@endphp
Competency Framework
The behaviours/dimensions used in the assessment are derived from Company {{$cand->company}}. They were selected to provide a clear picture of a respondents capabilities within a companys competency framework.
COMPETENCY PROFILE
Overall Findings
The overall competency potential score estimates the candidate's tendency to exhibit effective workplace behaviors as observed during the live assessment. Success profile or target score refers to the competency profile needed for a maximum fit to perform the role.
@foreach($comps as $compData)
@php
if (empty($getEvaluator)) {
$average = 0;
}
else {
if (isset($getEvaluator[$compData->type])) {
foreach ($getEvaluator[$compData->type] as $key => $value) {
$getEvaluator[$compData->type][$key] = (($value == 0)?$value:$compData->totalStars);
}
// $average = array_sum($getEvaluator[$compData->type])/count($getEvaluator[$compData->type]);
$newAverageFIlter1 = array_filter($evalutarHeadRaw[$compData->type]);
$average = count($newAverageFIlter1);
$percentInDecimal = $cand->talegentWeigh / 100;
$newTgscore = $percentInDecimal * $compData->tgScore;
$newTgWeigh = 100 - $cand->talegentWeigh;
$percentInDecimal2 = $newTgWeigh / 100;
$newAverage = $percentInDecimal2 * $average;
$newAve = $newTgscore+$newAverage;
}
else {
$average = 0;
}
}
$numFormAve = number_format($newAve, 2);
$numFormAveLess = $numFormAve;
@endphp
{{$numFormAve}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@endfor
@while($numFormAveLess > 0)
@if($numFormAveLess > 0.99)
@else
@endif
@php
$numFormAveLess--;
@endphp
@endwhile
{{number_format($compData->target_score, 2)}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@endfor
@php $targetScore = $compData->target_score @endphp
@while($targetScore>0)
@php
$targetScore--;
@endphp
@endwhile
@php
$scoresArr[] = $numFormAve;
$totalScoresArr[] = $compData->totalStars;
$targetScoresArr[] = $compData->target_score;
$totalScoresArrFinal = array_sum($totalScoresArr)/count($totalScoresArr);
$targetScoresArrFinal = array_sum($targetScoresArr)/count($targetScoresArr);
@endphp
@endforeach
@php
$scoresFinal = array_sum($scoresArr)/count($scoresArr);
$round1 = round($scoresFinal);
$numFormAveRaw = number_format($scoresFinal, 2);
@endphp
{{$numFormAveRaw}}
@for($iCountStarRaw = 1; $iCountStarRaw <= $totalScoresArrFinal; $iCountStarRaw++)
@endfor
@php $targetScoreRaw = $scoresFinal @endphp
@while($targetScoreRaw > 0)
@if($targetScoreRaw >0.99)
@else
@endif
@php
$targetScoreRaw--;
@endphp
@endwhile
{{number_format($targetScoresArrFinal, 2)}}
@for($iCountStarTotal = 1; $iCountStarTotal <= $totalScoresArrFinal; $iCountStarTotal++)
@endfor
@php $targetScoreTotal = $targetScoresArrFinal @endphp
@while($targetScoreTotal>0)
@if($targetScoreTotal >0.99)
@else
@endif
@php
$targetScoreTotal--;
@endphp
@endwhile
@php
$compDivStyle = '';
$phase = '2 of 2';
if ($jsonDecodeAsses['opa'] == 0) {
$compDivStyle = "display:none";
$phase = '1 of 1';
}
@endphp
COMPETENCY PROFILE
PHASE 1 of 2: Online Self-Discovery Assessment ({{$cand->talegentWeigh}}%)
The online assessment measures the candidate's behavioral tendencies and potential based on the Talegent online assessment. Talegent competencies are then mapped against the competency framework of {{$cand->company}} to gather relevant results.
@foreach($comps as $compData)
@php
$tgScore = $compData->tgScore;
$numFormAve2 = number_format($compData->tgScore, 2);
@endphp
{{$numFormAve2}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@endfor
@while($tgScore>0)
@if($tgScore >0.99)
@else
@endif
@php
$tgScore--;
@endphp
@endwhile
{{number_format($compData->target_score, 2)}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@endfor
@php $targetScore = $compData->target_score @endphp
@while($targetScore>0)
@php
$targetScore--;
@endphp
@endwhile
@php
$scoresArr2[] = $numFormAve2;
$totalScoresArr2[] = $compData->totalStars;
$targetScoresArr2[] = $compData->target_score;
$totalScoresArrFinal2 = array_sum($totalScoresArr2)/count($totalScoresArr2);
$targetScoresArrFinal2 = array_sum($targetScoresArr2)/count($targetScoresArr2);
@endphp
@endforeach
@php
$scoresFinal2 = array_sum($scoresArr2)/count($scoresArr2);
$round2 = round($scoresFinal2);
$numFormAveRaw2 = number_format($scoresFinal2, 2);
$numFormAveRaw2 = $cand->talegentTotalScore;
@endphp
{{$numFormAveRaw2}}
@for($iCountStarRaw = 1; $iCountStarRaw <= $totalScoresArrFinal2; $iCountStarRaw++)
@endfor
@php $targetScoreRaw = $numFormAveRaw2 @endphp
@while($targetScoreRaw>0)
@if($targetScoreRaw >0.99)
@else
@endif
@php
$targetScoreRaw--;
@endphp
@endwhile
{{number_format($targetScoresArrFinal2, 2)}}
@for($iCountStarTotal = 1; $iCountStarTotal <= $totalScoresArrFinal2; $iCountStarTotal++)
@endfor
@php $targetScoreTotal = $targetScoresArrFinal2 @endphp
@while($targetScoreTotal>0)
@if($targetScoreTotal >0.99)
@else
@endif
@php
$targetScoreTotal--;
@endphp
@endwhile
@php
$webWeigh = 100 - $cand->talegentWeigh;
@endphp
COMPETENCY PROFILE
PHASE {{$phase}}: Live Simulations ({{$webWeigh}}%)
Multi-rater Assessment consists of several activities designed to allow candidates to demonstrate, under standardized conditions, the skills and abilities that are most essential for success in a given job. The observed behaviors are classified and rated based on the competency framework of {{$cand->company}}.
@foreach($comps as $compData)
@php
if (empty($getEvaluator)) {
$average3 = 0;
}
else {
if (isset($getEvaluator[$compData->type])) {
foreach ($getEvaluator[$compData->type] as $key => $value) {
$getEvaluator[$compData->type][$key] = (($value == 0)?$value:$compData->totalStars);
}
// $average3 = array_sum($getEvaluator[$compData->type])/count($getEvaluator[$compData->type]);
$newAverageFIlter = array_filter($evalutarHeadRaw[$compData->type]);
$average3 = count($newAverageFIlter);
}
else {
$average3 = 0;
}
}
$numFormAve3 = number_format($average3, 2);
@endphp
{{$numFormAve3}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@endfor
@while($average3>0)
@if($average3 >0.99)
@else
@endif
@php
$average3--;
@endphp
@endwhile
{{number_format($compData->target_score, 2)}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@endfor
@php $targetScore = $compData->target_score @endphp
@while($targetScore>0)
@php
$targetScore--;
@endphp
@endwhile
@php
$scoresArr3[] = $numFormAve3;
$totalScoresArr3[] = $compData->totalStars;
$targetScoresArr3[] = $compData->target_score;
$totalScoresArrFinal3 = array_sum($totalScoresArr3)/count($totalScoresArr3);
$targetScoresArrFinal3 = array_sum($targetScoresArr3)/count($targetScoresArr3);
@endphp
@endforeach
@php
$scoresFinal3 = array_sum($scoresArr3)/count($scoresArr3);
$numFormAveRaw3 = number_format($scoresFinal3, 2);
@endphp
{{$numFormAveRaw3}}
@for($iCountStarRaw = 1; $iCountStarRaw <= $totalScoresArrFinal3; $iCountStarRaw++)
@endfor
@php $targetScoreRaw = $scoresFinal3 @endphp
@while($targetScoreRaw>0)
@if($targetScoreRaw >0.99)
@else
@endif
@php
$targetScoreRaw--;
@endphp
@endwhile
{{number_format($targetScoresArrFinal, 2)}}
@for($iCountStarTotal = 1; $iCountStarTotal <= $totalScoresArrFinal3; $iCountStarTotal++)
@endfor
@php $targetScoreTotal = $targetScoresArrFinal @endphp
@while($targetScoreTotal>0)
@if($targetScoreTotal >0.99)
@else
@endif
@php
$targetScoreTotal--;
@endphp
@endwhile
STRENGTHS & GAPS
Your Areas of Strength and Competence
These are the candidate's competence areas and the respective behavioral dimensions they seem to strongly and positively display during the assessment.
Your Areas for Development
These are the candidate's areas for development and the respective behavioral dimensions they were unable to display during the live assessment.
@if($data->assestmentHeader != '')
{{strtoupper($data->assestmentHeader)}}
Overall Findings
What did they share as their career goals? How have they acknowledged their strenghts and areas for development?
@if($data->assestmentBody == 1)
Reflect on the DC today, what do you think are the criteria we observed and measured?
How will you rate your DC performance? Why did you select this rating?
If you were given the oppurtinity to take the DC again, what will you do differently? Why?
@php
$awarenessFirst = '';
$awarenessSecond = '';
$awarenessThird = '';
if ($cand->selfAwareness != '') {
$rsD = json_decode($cand->selfAwareness, true);
$awarenessFirst = $rsD[0];
$awarenessSecond = $rsD[1];
$awarenessThird = $rsD[2];
}
@endphp
@php
echo nl2br($awarenessFirst);
@endphp
@php
echo nl2br($awarenessSecond);
@endphp
@php
echo nl2br($awarenessThird);
@endphp
@endif
@endif
@foreach($comps as $compData)
@if(in_array($compData->type, $resEvalComps))
@php
if (empty($getEvaluator)) {
$average1 = 0;
$newAve = 0;
}
else {
if (isset($getEvaluator[$compData->type])) {
foreach ($getEvaluator[$compData->type] as $key => $value) {
$getEvaluator[$compData->type][$key] = (($value == 0)?$value:$compData->totalStars);
}
// $average1 = array_sum($getEvaluator[$compData->type])/count($getEvaluator[$compData->type]);
$newAverageFIlter2 = array_filter($evalutarHeadRaw[$compData->type]);
$average1 = count($newAverageFIlter2);
$percentInDecimal = $cand->talegentWeigh / 100;
$newTgscore = $percentInDecimal * $compData->tgScore;
$newTgWeigh = 100 - $cand->talegentWeigh;
$percentInDecimal2 = $newTgWeigh / 100;
$newAverage = $percentInDecimal2 * $average1;
$newAve = $newTgscore+$newAverage;
}
else {
$newAve = 0;
}
}
$numFormAve = number_format($newAve, 2);
$totalAve = str_replace('.00', '', $numFormAve);
@endphp
Candidate Score: {{$numFormAve}}/{{number_format($compData->totalStars, 2)}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@if($totalAve < $iCountStar)
@else
@if($totalAve > 0.5)
@else
@endif
@endif
@endfor
Target Score: {{number_format($compData->target_score, 2)}}/{{number_format($compData->totalStars, 2)}}
@for($iCountStar = 1; $iCountStar <= $compData->totalStars; $iCountStar++)
@if($compData->target_score < $iCountStar)
@else
@endif
@endfor
@foreach($getEvaluators as $evalData)
@php
$rowDataChecker = '';
if (isset($rsEvalArray[$evalData->id][$compData->type]['foot'])) {
$rsEvalRaw = $rsEvalArray[$evalData->id][$compData->type]['foot'];
$evalDataFooter = json_decode($rsEvalRaw, true);
switch ($compData->totalComments) {
case '1':
$col = 'col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12';
break;
case '2':
$col = 'col-6 col-sm-6 col-md-6 col-lg-6 col-xl-6';
break;
case '3':
$col = 'col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4';
break;
}
print '';
}
@endphp
@if(strlen($rowDataChecker) == 0)
@endif
@endforeach
@php
foreach ($dvtips as $key => $value) {
if ($value['type'] == $compData->type) {
$totalAve = floor($totalAve);
$jsnData = json_decode($value['data'], true);
if ($totalAve == 0) {
echo '- No Data
';
}
else {
echo '- '.nl2br($jsnData[$totalAve]).'
';
}
break;
}
}
@endphp
@endif
@endforeach
@php
$development = $data->development;
$development = str_replace('{', '', $development);
$development = str_replace('}', '', $development);
$development = str_replace('newPage', '
', $development);
print_r($development);
@endphp