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

🧠 Quiz

Beantworte 10 Fragen – max. 40 Münzen zu gewinnen!

@foreach($subjects as $subjectId => $subject) @php $group = $quizzes->get($subjectId, collect()) @endphp @if($group->isNotEmpty())

{{ $subject->icon }} {{ $subject->name }}

@foreach($group as $quiz)

{{ $quiz->title }}

@if($quiz->description)

{{ $quiz->description }}

@endif
📝 {{ $quiz->questions_count }} Fragen 🏆 max. 40 Münzen @if(isset($bestScores[$quiz->id])) Bisher: {{ $bestScores[$quiz->id] }}/40 🪙 @endif
@csrf
@endforeach
@endif @endforeach @if($quizzes->isEmpty())

🧩

Noch keine Quizzes verfügbar. Schau später nochmal vorbei!

@endif @endsection