@extends('layouts.child')
@section('content')
@php $tl = $question->time_limit ?? 0; @endphp
{{-- Header bar --}}
← Quiz
{{ $attempt->current_question + 1 }} / {{ $attempt->quiz->questions()->count() }}
{{-- Timer bar --}}
{{-- Last answer flash --}}
@if(session('last_answer'))
@php $la = session('last_answer'); @endphp
@if($la['timeout']) ⏱ Zeit abgelaufen – 0 Münzen
@elseif($la['correct']) ✅ Richtig! +{{ $la['points'] }} 🪙
@else ❌ Leider falsch – 0 Münzen
@endif
@endif
{{-- Points badge --}}
+{{ $pointsIfCorrect }} 🪙 bei richtiger Antwort
{{-- Question card --}}
{{ $question->question_text }}
@endsection