Colour quiz

Each answer adds points to colours. The highest total wins; ties go to the outcome listed first.
@if ($quizId && $quiz['is_active'])View quiz ↗@endif
@if ($errors->any())@endif
@foreach ($colours->take(2) as $c)@endforeach
@foreach ($questions as $qi => $q)
@foreach ($colours as $c)@endforeach @foreach ($q['answers'] as $ai => $a) @foreach ($colours as $c)@endforeach @endforeach
AnswerIcon{{ $c->name }}
@error("questions.$qi.answers.$ai.label")Required@enderror
@endforeach
Results @foreach ($colours as $c)
{{ $c->name }}{{ $results[$c->id] ?? 0 }}
@endforeach