<div class="modal fade" id="addModal" tabindex="-1" aria-labelledby="addModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="addModalLabel">เพิ่มข้อมูลเทมเพลต</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form id="addForm" method="POST">
                    <?php echo csrf_field(); ?>
                    <div id="holder" style="margin-bottom:15px;max-height:100px;"></div>
                    <div class="input-group">
                        <span class="input-group-btn">
                            <a id="lfm" data-input="image_url" data-preview="holder" class="btn btn-primary">
                                <i class="fa-solid fa-image"></i> เลือก
                            </a>
                        </span>
                        <input id="image_url" class="form-control" type="text" name="image_url" value="<?php echo e(old('image_url')); ?>">
                    </div>
                    <div class="mt-3">
                        <label class="form-label">ชื่อเกม</label>
                        <input type="text" class="form-control" name="template_name" placeholder="ชื่อเกม" value="<?php echo e(old('template_name')); ?>">
                    </div>
                    <div class="mt-3">
                        <label class="form-label">รายละเอียดเกม</label>
                        <textarea id="summernote" name="description"><?php echo e(old('description')); ?></textarea>
                    </div>
                    <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/add_template.blade.php ENDPATH**/ ?>