@extends('layouts.admin') @section('title', 'Manajemen Soal') @section('content')
| Kategori Soal | Pertanyaan | Tipe | Kunci Jawaban | Skor | Actions |
|---|---|---|---|---|---|
| {{ $question->category->name }} | {{-- PERTANYAAN --}}
{{ $question->question }}
@if($question->photo_path)
|
{{-- TYPE --}}
{{ $question->type }} | {{-- KUNCI JAWABAN --}}
{{-- 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)
@else
Tidak ada keyword
@endif
@endif
{{ $keyword->score }}
{{ $keyword->keyword }}
@endforeach
|
{{-- SCORE --}}
{{ $question->score }} | {{-- ACTION --}}|
|
Tidak ada soal yang ditemukan. |
|||||