<div class="modal fade" id="answersModal" tabindex="-1" aria-labelledby="answersModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="answersModalLabel">เพิ่มข้อมูลคำตอบ</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form id="answersForm" method="POST">
                    <?php echo csrf_field(); ?>
                    <div id="answers-container"></div>
                    <button type="button" id="add-answer-btn" class="btn btn-primary mt-3">เพิ่มคำตอบ</button>
                    <div class="mt-3">
                        <label class="form-label">คำใบ้</label>
                        <input type="text" class="form-control" id="hint_text" name="hint_text" placeholder="คำใบ้">
                    </div>
                    <input type="hidden" id="questions_id" name="question_id">
                    <div class="mt-3">
                        <div class="d-grid gap-2 d-md-flex justify-content-md-end">
                            <button class="btn btn-primary" id="addSubmitBtn" type="submit">บันทึก</button>
                            <button class="btn btn-secondary" type="button" data-bs-dismiss="modal">ยกเลิก</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div><?php /**PATH C:\xampp\htdocs\quiz-game\resources\views/modals/answers_questions.blade.php ENDPATH**/ ?>