@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 เลือกประเภทคำตอบที่ต้องการ
คำถามนี้จะถูกนำมาคำนวณผลการประเมิน
@if($question->question_type === 'multiple_choice' && $question->choices) @foreach(json_decode($question->choices) as $index => $choice)
{{ $index + 1 }}
@endforeach @else
1
2
@endif
กรอกตัวเลือกสำหรับคำถามแบบตัวเลือก
หมายเหตุ:
  • ใช้การลากในหน้าแก้ไขกลุ่มคำถามเพื่อกำหนดความสัมพันธ์แม่-ลูก
  • เงื่อนไขการเชื่อมต่อ (AND/OR) จะแสดงในหน้าแก้ไขกลุ่มคำถาม
ยกเลิก
@endsection