@extends('layouts.app') @section('title', $quiz->title) @section('content') @php $secondsLeft = $deadline ? max(0, now()->diffInSeconds($deadline, false)) : null; @endphp
@if ($deadline)
@endif
@csrf @foreach ($view as $idx => $item) @php $q = $item['q']; @endphp
{{ $idx + 1 }} {{ rtrim(rtrim(number_format($q->points,1),'0'),'.') }} pts

{{ $q->question_text }}

@switch($q->type) @case('mcq') @case('true_false')
@foreach ($item['choices'] as $c) @endforeach
@break @case('multi_select')
@foreach ($item['choices'] as $c) @endforeach

Select all that apply.

@break @case('identification') @case('short_answer') @case('fill_blank') @break @case('essay') @break @case('matching')
@foreach ($q->meta['pairs'] ?? [] as $i => $pair)
{{ $pair['left'] }}
@endforeach
@break @case('ordering')

Assign the correct position to each item.

@foreach ($item['items'] as $it)
{{ $it['text'] }}
@endforeach
@break @endswitch
@endforeach

Review your answers before submitting.

@endsection