Cập nhật câu hỏi

{{-- Action --}}
@section('question-item') @php $inputTag = view('admin.forms.input', [ 'config' => [ 'type' => 'crazytag', 'name' => 'tags', 'id' => 'tags', '@type' => 'dynamic', '@search-route' => 'admin.tags.data', '@create-route' => 'admin.tags.create', '@create-field' => 'tags', ], ])->render(); @endphp
{{--
{!! $inputTag !!}
--}}
Câu hỏi:
{$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')
{{-- --}}
${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 $subjectLevelLabelMap = get_subject_data_map(); // 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'); // 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/update.js?v=' . get_app_version()); add_css_link('static/features/questions/style.min.css?v=' . get_app_version()); add_js_data('question_update_data', [ 'urls' => [ 'update' => route('admin.questions.ajax-save'), 'detail' => route('admin.questions.ajax-detail'), ], 'templates' => [ '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' => $subjectLevelLabelMap, 'questions' => [], 'empty_question' => [ 'content' => '', 'is_correct' => null, 'answers' => [ 'A' => [ 'content' => '', 'is_correct' => false, ], 'B' => [ 'content' => '', 'is_correct' => false, ], 'C' => [ 'content' => '', 'is_correct' => false, ], 'D' => [ 'content' => '', 'is_correct' => false, ], ], ], ], ]); @endphp