Aptitude Test Report

{{ $aptitudeAttempt->student->name }} ({{ $aptitudeAttempt->student->admission_no }})

Counselor: {{ $aptitudeAttempt->counselor->name }}

Date: {{ $aptitudeAttempt->created_at->format('d M Y, H:i') }}

Total Score: {{ $aptitudeAttempt->total_score }}

@foreach($aptitudeAttempt->answers->groupBy(function($a){ return $a->question->section; }) as $section => $answers)

{{ $section }}


@foreach($answers as $answer)

Q{{ $loop->iteration }}. {!! $answer->question->question !!}

@if($answer->question->image) Question Image @endif

Answer: @php $ans = $answer->student_answer; $display = ''; if(in_array($answer->question->type, ['mcq','true_false'])) { $option = $answer->question->options[$ans] ?? null; $display = $option['text'] ?? $ans; } else { $display = $ans; } @endphp {!! $display !!}

Marks Obtained: {{ $answer->obtained_marks }} / {{ $answer->question->marks }}

@endforeach
@endforeach