@for($ri=1;$ri<=5;$ri++) @endfor @for($ki=1;$ki<=5;$ki++) @endfor @foreach($data['personality_lists'] as $pkey => $pvalue) @endforeach @foreach($data['aptitude_lists'] as $akey => $avalue) @endforeach @php $i=1; @endphp @foreach ($data['assessment_details'] as $candidate_value) @if($candidate_value->department) @else @endif @php $career_recommendations = json_decode($candidate_value['career_recommendations'],true); $strengths_personality = json_decode($candidate_value['strengths_personality'],true); $strengths_aptitude = json_decode($candidate_value['strengths_aptitude'],true); $development_opp_personality = json_decode($candidate_value['development_opp_personality'],true); $development_opp_aptitude = json_decode($candidate_value['development_opp_aptitude'],true); $key_interests = json_decode($candidate_value['key_interests'],true); $personality_scores = json_decode($candidate_value['personality_scores'],true); $apptitude_scores = json_decode($candidate_value['apptitude_scores'],true); @endphp @php $recommendCount = 0; @endphp @if(!empty($career_recommendations)) @foreach ($career_recommendations as $value) @php $recommendCount++; @endphp @endforeach @endif @for($k=$recommendCount;$k<5;$k++) @endfor @php $stPersonalityCount = 0; @endphp @if(!empty($strengths_personality)) @foreach (array_slice($strengths_personality,0,15) as $key=>$value) @php $stPersonalityCount++; @endphp @endforeach @endif @for($k=$stPersonalityCount;$k<$data['max_counts']['strengths_personality'];$k++) @endfor @php $stAptitudeCount = 0; @endphp @if(!empty($strengths_aptitude)) @foreach (array_slice($strengths_aptitude,0,15) as $key=>$value) @php $stAptitudeCount++; @endphp @endforeach @endif @for($k=$stAptitudeCount;$k<$data['max_counts']['strengths_aptitude'];$k++) @endfor @php $devopperCount = 0; @endphp @if(!empty($development_opp_personality)) @foreach (array_slice($development_opp_personality,0,15) as $key=>$value) @php $devopperCount++; @endphp @endforeach @endif @for($k=$devopperCount;$k<$data['max_counts']['opportunity_personality'];$k++) @endfor @php $devopapCount = 0; @endphp @if(!empty($development_opp_aptitude)) @foreach (array_slice($development_opp_aptitude,0,15) as $key=>$value) @php $devopapCount++; @endphp @endforeach @endif @for($k=$devopapCount;$k<$data['max_counts']['opportunity_aptitude'];$k++) @endfor @php $keyInterestCount = 0; @endphp @if(!empty($key_interests)) @foreach ($key_interests as $value) @php $keyInterestCount++; @endphp @endforeach @endif @for($k=$keyInterestCount;$k<5;$k++) @endfor @foreach($data['personality_lists'] as $pkey => $pvalue) @endforeach @foreach($data['aptitude_lists'] as $akey => $avalue) @endforeach @endforeach
Sl No Name Roll Number School / Department Testpin Career Recommendations Strengths Development Opportunities Key Interests Personality Scores Aptitude Scores
{{ $ri }}Personality Aptitude Personality Aptitude{{ $ki }}{{ $pvalue }}{{ $avalue }}
{{ $i++ }} {{ $candidate_value->candidate_name }} {{ $candidate_value->roll_number ?? '--' }}{{ $candidate_value->department }}--{{ $candidate_value->testpin }} @if(isset($data['interest_lists'][$value])) {{$data['interest_lists'][$value]}} @else -- @endif -- @if(isset($data['personality_lists'][$value])) {{ $data['personality_lists'][$value] }} @else -- @endif -- @if(isset($data['aptitude_lists'][$value])) {{ $data['aptitude_lists'][$value] }} @else -- @endif -- @if(isset($data['personality_lists'][$value])) {{ $data['personality_lists'][$value] }} @else -- @endif -- @if(isset($data['aptitude_lists'][$value])) {{ $data['aptitude_lists'][$value] }} @else -- @endif -- @if(isset($data['interest_lists'][$value])) {{ $data['interest_lists'][$value] }} @else -- @endif --{{ isset($personality_scores[$pkey]) ? $personality_scores[$pkey] : '--' }}{{ isset($apptitude_scores[$akey]) ? $apptitude_scores[$akey] : '--' }}