@extends('layouts.app') @section('content')
← Back to History

{{ $attempt->topic->title }}

{{ $attempt->topic->description }}

@if($attempt->score_percentage >= 80) 🏆 @elseif($attempt->score_percentage >= 60) @else 📚 @endif

{{ number_format($attempt->score_percentage, 1) }}%

Final Score

{{ $attempt->correct_answers }}

Correct Answers

{{ $attempt->total_questions - $attempt->correct_answers }}

Wrong Answers
⏱️

{{ gmdate('i:s', $attempt->total_time_seconds) }}

Total Time
Started At {{ $attempt->started_at->format('M d, Y - h:i A') }}
Completed At {{ $attempt->completed_at->format('M d, Y - h:i A') }}
Duration {{ $attempt->started_at->diffForHumans($attempt->completed_at, true) }}
📝 Question Review
@foreach($attempt->responses as $index => $response)
Question {{ $index + 1 }} @if($response->is_correct) ✓ Correct @elseif($response->option_id) ✗ Incorrect @else ⊘ Not Answered @endif
Time: {{ $response->time_taken_seconds }}s
{{ $response->question->question }}
@foreach($response->question->options as $option)
@if($option->is_correct) @elseif($response->option_id == $option->id && !$option->is_correct) @else @endif
{{ $option->option_text }}
@if($option->is_correct) Correct Answer @endif @if($response->option_id == $option->id) Your Answer @endif
@endforeach
@if(!$response->option_id)
⚠️ You did not select an answer for this question
@endif
@endforeach
Try Again to Improve Your Score
@endsection