@if(isset($psychometric_report['multifacet_behaviour']['behaviour']) && count($psychometric_report['multifacet_behaviour']['behaviour'])>0)
Dimensions
@php $behaviour_count=0; @endphp @foreach($psychometric_report['multifacet_behaviour']['behaviour'] as $key=>$summary_report) @php $behaviour_count++; $behaviour_id='demo-pie-'.$behaviour_count; $msten_score= ($summary_report['sten_score']) ? $summary_report['sten_score'] : 0; @endphp
{{ $summary_report['behavior_name'] ? $summary_report['behavior_name'] : ""}}
{{ round(($msten_score*10),2) }}%
{!! $summary_report['custom_description'] ? $summary_report["custom_description"] : "" !!}
@endforeach
@endif @if(isset($psychometric_report['multifacet_behaviour']['competencies']) && count($psychometric_report['multifacet_behaviour']['competencies'])>0)
Well-Being Factors
@php function SingleBehaviourScoreClass($score,$check_level=[]) { $score_data = array(); if($score>=$check_level[1]['low'] && $score<=$check_level[1]['high']){ $score_data['spans'] = "Low"; $score_data['color'] = '#FF6740'; } elseif($score>$check_level[2]['low'] && $score<=$check_level[2]['high'] ){ $score_data['spans'] = "Moderate"; $score_data['color'] = '#FFBF00'; } elseif($score>$check_level[3]['low'] && $score<=$check_level[3]['high'] ){ $score_data['spans'] = "High"; $score_data['color'] = '#1B59E9'; } elseif($score>$check_level[4]['low'] && $score<=$check_level[4]['high'] ){ $score_data['spans'] = "Very High"; $score_data['color'] = '#30CC13'; }else{ $score_data['spans'] = "Very low"; $score_data['color'] = '#30CC13'; } return $score_data; } $behaviour_key = 1; $competencies = $psychometric_report['multifacet_behaviour']['competencies']; $profin_level = []; $profin_level[1]['low'] = 0; $profin_level[1]['high'] = 3.5; $profin_level[2]['low'] = 3.5; $profin_level[2]['high'] = 6.5; $profin_level[3]['low'] = 6.5; $profin_level[3]['high'] = 8.5; $profin_level[4]['low'] = 8.5; $profin_level[4]['high'] = 10; @endphp @foreach($psychometric_report['behaviour'] as $key=>$summary_report)
{{ $behaviour_key }}. {{ $summary_report['behavior_name'] ? $summary_report['behavior_name'] : ""}} :
@forelse($psychometric_report['behaviourCompetancy'][$key] as $ckey=>$competency_id) @if(isset($competencies[$key][$competency_id])) @php $competency_data = $competencies[$key][$competency_id]; $mcomp_sten_score= ($competency_data['score'] > 0) ? $competency_data['score'] : 0; $cssdata = SingleBehaviourScoreClass(round(($mcomp_sten_score),1),$profin_level); if($entity->field_report_format == 2){ $per= (float)$mcomp_sten_score * 10; }else{ $per= (float)$mcomp_sten_score * 100 / 10; } @endphp @endif @empty @endforelse
{{ isset($competency_data['name']) ? $competency_data['name'] : ""}}
{{($entity->field_report_format == 2)?round($mcomp_sten_score,1):round($per,1).'%' }}
No Records Found
 
  0 {{($entity->field_report_format==2)?1:10}} {{($entity->field_report_format==2)?2:30}} {{($entity->field_report_format==2)?3:30}} {{($entity->field_report_format==2)?4:40}} {{($entity->field_report_format==2)?5:50}} {{($entity->field_report_format==2)?6:60}} {{($entity->field_report_format==2)?7:70}} {{($entity->field_report_format==2)?8:80}} {{($entity->field_report_format==2)?9:90}} {{($entity->field_report_format==2)?10:100}}
@forelse($psychometric_report['behaviourCompetancy'][$key] as $ckey=>$competency_id) @if(isset($competencies[$key][$competency_id])) @php $competency_data = $competencies[$key][$competency_id]; @endphp
{{ $competency_data['name'] ? $competency_data['name'] : ""}}
@php $mcomp_sten_score= ($competency_data['score']>0) ? $competency_data['score'] : 0; $per= (float)$mcomp_sten_score * 100 / 10; @endphp
{{ round(($mcomp_sten_score*10),1) }}
10
20
30
40
50
60
70
80
90
100
{!! $competency_data["proficiency"] ? $competency_data["proficiency"]['level_content'] :"--" !!}
@endif @empty No records found @endforelse @php $behaviour_key++; @endphp @endforeach
@endif