Counselor: {{ $aptitudeAttempt->counselor->name }}
Date: {{ $aptitudeAttempt->created_at->format('d M Y, H:i') }}
Total Score: {{ $aptitudeAttempt->total_score }}
Q{{ $loop->iteration }}. {!! $answer->question->question !!}
@if($answer->question->image)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 }}