@extends('layouts.admin') @section('title', 'Manajemen Soal') @section('content')

Daftar Soal

Tambah Soal
@if (session('success'))
{{ session("success") }}
@endif
Daftar Soal
@forelse($questions as $question) {{-- CATEGORY --}} {{-- PERTANYAAN --}} {{-- TYPE --}} {{-- KUNCI JAWABAN --}} {{-- SCORE --}} {{-- ACTION --}} @empty @endforelse
Kategori Soal Pertanyaan Tipe Kunci Jawaban Skor Actions
{{ $question->category->name }}
{{ $question->question }} @if($question->photo_path) @endif
{{ $question->type }} {{-- MULTIPLE CHOICE --}} @if($question->type === 'multiple_choice') @php $correct = $question->options ->where('is_correct', true) ->first(); @endphp @if($correct)
{{ $correct->label }} {{ $correct->answer }}
@else Tidak ada jawaban benar @endif @endif {{-- ESSAY AUTO --}} @if($question->type === 'essay_auto') @if($question->keywords->count())
@foreach($question->keywords as $keyword)
{{ $keyword->score }} {{ $keyword->keyword }}
@endforeach
@else Tidak ada keyword @endif @endif
{{ $question->score }}
{{-- SHOW --}} Lihat Edit
@csrf @method('DELETE')

Tidak ada soal yang ditemukan.

@if($questions->hasPages()) @endif
@endsection