@extends('layouts.admin') @section('content')

แก้ไขคำถาม

กลับไปกลุ่มคำถาม
แก้ไขข้อมูลคำถาม - {{ $question->questionGroup->name }}
@csrf @method('PUT')
@error('question_text')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('question_type')
{{ $message }}
@enderror เลือกประเภทคำตอบที่ต้องการ
@error('keyword_tag')
{{ $message }}
@enderror แท็กสำหรับจัดหมวดหมู่คำถาม
@if($question->question_type === 'multiple_choice' && $question->choices) @foreach(json_decode($question->choices) as $index => $choice)
{{ $index + 1 }}
@endforeach @else
1
2
@endif
กรอกตัวเลือกสำหรับคำถามแบบตัวเลือก
ตั้งค่าเพิ่มเติม
use_in_evaluation) ? 'checked' : '' }} {{ $question->question_type === 'multiple_choice' || $question->question_type === 'text' ? 'disabled' : '' }}>
เลือกถ้าคำถามนี้จะใช้ในการประเมินผล (เฉพาะคำถามแบบ ใช่/ไม่ใช่ และ ไม่มี เท่านั้น)
หมายเหตุ:
  • ใช้การลากในหน้าแก้ไขกลุ่มคำถามเพื่อกำหนดความสัมพันธ์แม่-ลูก
  • เงื่อนไขการเชื่อมต่อ (AND/OR) จะแสดงในหน้าแก้ไขกลุ่มคำถาม
ยกเลิก
@endsection