@extends('layouts.child') @section('content')
{{ $attempt->stars() }}

{{ $attempt->score }} / 40 Münzen

{{ $attempt->quiz->title }}

+{{ $attempt->score }} 🪙 verdient!
{{-- Per-question breakdown --}}
@foreach($answers as $i => $a) @php $display = $a->answer_given; if ($display === '__timeout__') { $display = '⏱ Zeit abgelaufen'; } elseif (in_array($a->question->type, ['multiple_choice','exclusion'])) { $opt = $a->question->answerOptions->firstWhere('id', (int)$a->answer_given); $display = $opt ? $opt->text : '–'; } elseif ($a->question->type === 'true_false') { $display = $display === 'true' ? 'Wahr' : 'Falsch'; } $points_scale = \App\Models\QuizAttempt::POINTS; @endphp @endforeach
# Frage Ergebnis Münzen
{{ $i+1 }} {{ Str::limit($a->question->question_text, 55) }} @if($a->is_correct) ✅ {{ $display }} @else ❌ {{ $display }} @endif {{ $a->is_correct ? '+' . $a->points_earned : '0' }}
@csrf
← Zur Quiz-Übersicht
@endsection