@extends('layouts.app') @section('content')

📊 My Quiz History

Track your progress and review past attempts

@if($attempts->isEmpty())

No Quiz History Yet

Start taking quizzes to see your progress here!

Browse Topics
@else

{{ $attempts->total() }}

Total Attempts

{{ number_format($attempts->avg('score_percentage'), 1) }}%

Average Score

{{ $attempts->sum('total_questions') }}

Questions Answered

{{ gmdate('H:i:s', $attempts->sum('total_time_seconds')) }}

Total Time
@foreach($attempts as $attempt) @endforeach
Topic Score Questions Time Spent Date Actions
@if($attempt->score_percentage >= 80) 🏆 @elseif($attempt->score_percentage >= 60) @else 📚 @endif
{{ $attempt->topic->title }}
{{ $attempt->topic->description }}
{{ number_format($attempt->score_percentage, 1) }}%
{{ $attempt->correct_answers }} / {{ $attempt->total_questions }} {{ gmdate('i:s', $attempt->total_time_seconds) }} {{ $attempt->completed_at->format('M d, Y') }}
{{ $attempt->completed_at->format('h:i A') }}
View Details Retake
{{ $attempts->links() }}
@endif
@endsection