@extends('layouts.app') @section('title',$quiz->title) @section('content')
← Kembali ke kelas
LATIHAN SOAL

{{ $quiz->title }}

{{ $quiz->description }}

@csrf @foreach($quiz->questions as $question)
Soal {{ $loop->iteration }}{{ $question->points }} poin

{{ $question->question_text }}

@if(in_array($question->question_type,['multiple_choice','true_false']))@foreach($question->options as $option)@endforeach @elseif($question->question_type === 'multiple_select')

Pilih semua jawaban yang benar.

@foreach($question->options as $option)@endforeach @else@endif
@endforeach
@endsection