@php $subjectOptions = get_subject_options(); $topicMap = get_subject_topic_map(); $subjectLevelLabelMap = get_subject_data_map(); @endphp @extends($_layout.'main') {{-- khai báo title --}} @section('title', 'Nhập câu hỏi') {{-- tên modul xuất hiện trong sub header --}} @section('module.name', "Ngân hàng câu hỏi") {{-- Nội dung --}} @section('content')

Thêm Câu hỏi

Hủy
@endsection @section('question-item') @php $inputTag = view('admin.forms.input', [ 'config' => [ 'type' => 'crazytag', 'name' => 'aaaaaaaaaaaaaaaa', 'id' => 'iiiiiiiiiiiii', '@type' => 'dynamic', '@search-route' => 'admin.tags.data', '@create-route' => 'admin.tags.create', '@create-field' => 'tags', ], ])->render(); $itemTag = str_replace(['aaaaaaaaaaaaaaaa', 'iiiiiiiiiiiii'], ['questions[{$index}][tags]', 'question-{$index}-tags'], $inputTag); @endphp

Câu hỏi {$order}:

{{--
{!! $itemTag !!}
--}}
{$subject_select}
{$grade_select}
{$topic_select}
@for ($i = 2; $i < 11; $i++) @endfor
${error_message}
${preview}
Chỉnh sửa
${typeSelect}
{$correct_answer_radio}
{$answerList}

Danh sách câu hỏi

@endsection @section('question-child')
Câu hỏi {$order}:
${error_message}
${preview}
Chỉnh sửa
{$correct_answer_radio}
{$answerList}
@endsection @section('answer-item')
${preview}
Chỉnh sửa
@endsection @section('answer-child')
{$content}
Chỉnh sửa
@endsection @php set_admin_template_data('modals', 'modal-library'); // add_js_src('static/plugins/ckeditor5/plugins/ckplugins.js'); add_js_src('static/plugins/ckeditor5/build4/ckeditor.js'); // add_js_src('static/plugins/ckeditor5/build/ckeditor-mathtype.js'); add_js_src('static/manager/js/ckeditor.js?v=' . get_app_version()); // add_js_src('static/plugins/ckeditor5-35/build/ckeditor.js'); // add_js_src('static/features/questions/editor.js'); add_js_src('static/features/questions/question-item.js?v=' . get_app_version()); add_js_src('static/features/questions/create.js?v=' . get_app_version()); add_css_link('static/features/questions/style.min.css?v=' . get_app_version()); add_js_data('question_create_data', [ 'urls' => [ 'convert' => route('admin.questions.doc-to-html'), 'html_analytics' => route('admin.questions.html-questions'), ], 'templates' => [ 'file_upload_item' => $__env->yieldContent('file-upload-item'), 'question_item' => $__env->yieldContent('question-item'), 'answer_item' => $__env->yieldContent('answer-item'), 'question_child' => $__env->yieldContent('question-child'), 'answer_child' => $__env->yieldContent('answer-child'), ], 'data' => [ 'subject_options' => get_subject_options(), 'subject_topic_map' => get_subject_topic_map(), 'subject_data_map' => get_subject_data_map(), 'questions' => [ ], 'empty_question' => [ 'content' => '', 'is_correct' => null, 'error_message' => '', 'answers' => [ 'A' => [ 'content' => '', 'is_correct' => false ], 'B' => [ 'content' => '', 'is_correct' => false ], 'C' => [ 'content' => '', 'is_correct' => false ], 'D' => [ 'content' => '', 'is_correct' => false ] ] ] ] ]) @endphp