@extends('layouts.app') @section('title', 'Mengerjakan Ujian') @section('content')
{{-- Sticky Timer Bar --}}

{{ $exam->title }}

Sisa Waktu

{{-- Navigation --}}

Navigasi Soal

@foreach($questions as $index => $q) @endforeach
Sudah dijawab
Belum dijawab
{{-- Questions --}}
@foreach($questions as $index => $question)

Soal {{ $index + 1 }}

Bobot: {{ $question->point }}

{{ $question->question }}

@if($question->image_path)
Gambar soal
@endif @if($question->audio_path)
@endif @if($question->type === 'pilihan_ganda' || $question->type === 'gambar' || $question->type === 'suara') @php $options = $exam->random_option ? collect($question->options)->shuffle() : $question->options; @endphp
@foreach($options as $key => $opt) @if($opt) @endif @endforeach
@elseif($question->type === 'benar_salah')
@else @endif
@endforeach
{{-- Hidden form for submit --}}
@endsection @push('scripts') @endpush