JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "a3421da7fa60f8385f4571fa222875da.php"

Full Path: /home/ambitio2/public_html/storage/framework/views/a3421da7fa60f8385f4571fa222875da.php
File size: 3.11 KB
MIME-type: text/html
Charset: utf-8

<style>
    .select2-selection.select2-selection--multiple {
        cursor: pointer !important;
    }
</style>

<form class="ajaxForm" action="<?php echo e(route('admin.course.question.store')); ?>" method="post"><?php echo csrf_field(); ?>

    <input type="hidden" name="quiz_id" value="<?php echo e($id); ?>">
    <div class="row">
        <div class="col-sm-12">
            <div class="mb-3">
                <label class="form-label ol-form-label">
                    <?php echo e(get_phrase('Question Type')); ?>

                    <span class="text-danger ms-1">*</span>
                </label>
                <select class="form-control ol-form-control ol-select2" data-toggle="select2" name="type"
                    onchange="getOptionType(this)">
                    <option value=""><?php echo e(get_phrase('Select an option')); ?></option>
                    <option value="mcq"><?php echo e(get_phrase('Multiple Choice')); ?></option>
                    <option value="fill_blanks"><?php echo e(get_phrase('Fill in the blanks')); ?></option>
                    <option value="true_false"><?php echo e(get_phrase('True or False')); ?></option>
                    <option value="short_question"><?php echo e(get_phrase('Short Question')); ?></option>
                </select>
            </div>
        </div>
    </div>

    <div class="fpb-7 mb-3">
        <label for="title" class="form-label ol-form-label">
            <?php echo e(get_phrase('Write question')); ?>

            <span class="text-danger ms-1">*</span>
        </label>
        <textarea name="title" rows="5" class="form-control ol-form-control text_editor"></textarea>
    </div>

    <div class="load-question-type"></div>

    <div class="d-flex gap-3">
        <a href="#" class="btn ol-btn-primary" id="questionBackBtn"
            onclick="ajaxModal('<?php echo e(route('modal', ['admin.questions.index', 'id' => $id])); ?>', '<?php echo e(get_phrase('Questions')); ?>', 'modal-lg')">
            <i class="fi-rr-angle-small-left"></i> <?php echo e(get_phrase('Back')); ?>

        </a>

        <div class="fpb7">
            <button type="submit" class="btn ol-btn-primary"><?php echo e(get_phrase('Add Question')); ?></button>
        </div>
    </div>
</form>


<?php echo $__env->make('admin.init', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<script>
    function getOptionType(elem) {
        let type = elem.value;
        setupQuestion(type)
    }

    function setupQuestion(type) {
        if (type) {
            $.ajax({
                type: "get",
                url: "<?php echo e(route('admin.load.question.type')); ?>",
                data: {
                    type: type
                },
                success: function(response) {
                    $('.load-question-type').empty().append(response)
                }
            });
        }
    }

    // after response this function will call
    function responseBack() {
        document.querySelector('#questionBackBtn').click();
    }
</script>
<?php /**PATH /home/ambitio2/public_html/resources/views/admin/questions/create.blade.php ENDPATH**/ ?>