@extends('layouts.admin')
@section('content')
📄 Student Exam Report
👤 {{ $attempt->user->name }}
🎓 {{ $attempt->exam->title }}
📊 Score: {{ $attempt->score }}
📅 {{ $attempt->created_at->format('d M Y, h:i A') }}
@foreach($attempt->exam->questions as $q)
@php
$response = $responses->firstWhere('question_id', $q->id);
@endphp
{{ $q->question_text }}
@foreach($q->options as $op)
• {{ $op->option_text }}
@endforeach
Status:
@if(!$response) Not Answered
@elseif($response->is_correct) Correct
@else Wrong
@endif
@endforeach
@endsection