{{-- Back link --}} Back to Quizzes {{-- Main Card --}}
{{-- Header Gradient --}}
{{ $quiz->subLesson->lesson->title }} • {{ $quiz->subLesson->title }}

{{ $quiz->title }}

{{-- Stats Row --}} @php $totalSeconds = $quiz->time_limit; $th = floor($totalSeconds / 3600); $tm = floor(($totalSeconds % 3600) / 60); $ts = $totalSeconds % 60; $timeDisplay = $th > 0 ? sprintf('%02d:%02d:%02d', $th, $tm, $ts) : sprintf('%02d:%02d', $tm, $ts); @endphp
âąī¸
Time Limit
{{ $timeDisplay }}
📝
Questions
{{ $quiz->questions->count() }}
{{-- Cups Info --}}
Win
+{{ $quiz->win_cups }} 🏅
Loss
-{{ $quiz->loss_cups }} 🏅
@if($firstAttempt)
Attempts
{{ $allAttempts->count() }}
@endif
{{-- Attempt History --}} @if($allAttempts->count() > 0)
Attempt History 🏆 Cups only on 1st attempt
@foreach($allAttempts as $i => $att) @php $stars = 0; if ($att->score >= 90) $stars = 3; elseif ($att->score >= 70) $stars = 2; elseif ($att->score >= 40) $stars = 1; @endphp
{{ $i + 1 }}
{{ $att->score }}% @for($s = 0; $s < $stars; $s++)★@endfor @for($s = $stars; $s < 3; $s++)★@endfor
{{ $att->completed_at->diffForHumans() }}
@if($i === 0) 1st @if($att->earned_cups > 0) +{{ $att->earned_cups }}🏅 @elseif($att->earned_cups < 0) {{ $att->earned_cups }}🏅 @endif @else practice @endif View →
@endforeach
@endif {{-- In-progress warning --}} @if($incompleteAttempt)
âš ī¸ You have an in-progress attempt. Resuming will continue from where you left off.
@endif {{-- Retake info note --}} @if($firstAttempt && !$incompleteAttempt)
â„šī¸ You can retake for practice. Cups & scores are not updated on retakes — only your 1st attempt counts.
@endif {{-- Action Button --}} @if($incompleteAttempt) â–ļ Continue Quiz @else
@csrf
@if($allAttempts->count() > 0) 📄 PDF @endif
@endif