@extends('layouts.admin') @section('title', 'Questions · '.$exam->name) @php $config = [ 'exam' => ['id' => $exam->id, 'name' => $exam->name, 'status' => $exam->status->value, 'libraryId' => $exam->library_id], 'canManage' => $canManage, 'cases' => $cases, 'questions' => $exam->questions->map(fn ($q) => \App\Http\Controllers\Admin\ExamQuestionController::serialise($q))->values(), 'questionTypes' => $questionTypes, 'allItemsText' => \App\Enums\QuestionType::ALL_ITEMS_TEXT, 'csrf' => csrf_token(), 'urls' => [ 'store' => route('admin.exams.questions.store', $exam), 'update' => route('admin.exams.questions.update', [$exam, '__ID__']), 'destroy' => route('admin.exams.questions.destroy', [$exam, '__ID__']), 'reorder' => route('admin.exams.questions.reorder', $exam), 'annotate' => route('admin.xray-annotations.editor', ['__CASE__', '__VIEW__']), ], ]; @endphp @section('content') {{ $exam->name }} · · Library: {{ $exam->library?->name ?? 'any case' }} @can('preview', $exam) Preview @endcan Done @unless ($canManage)
This exam is {{ $exam->status->value }}, so its question set is read-only. @if ($exam->isPublished()) Unpublish it from the exam page to make changes. @endif
@endunless
Available Content {{ count($cases) }}
Add a whole case as an OK / NOT OK question, or one of its items as an object-location question. Items without a target on any view cannot be added yet.
Selected Questions 0 Total points: 0 @if ($canManage)· drag to reorder @endif
@include('admin.exams._question-modal') @endsection @push('scripts') @endpush