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

File "76e71053d93b1d568f463c245c5656e5.php"

Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/storage/framework/views/76e71053d93b1d568f463c245c5656e5.php
File size: 3.45 KB
MIME-type: text/html
Charset: utf-8

<div class="tab-pane fade <?php if($tab == 'forum'): ?> show active <?php endif; ?>" id="pills-forum" role="tabpanel" aria-labelledby="pills-forum-tab" tabindex="0">
    <div class="forum-tab-content">
        <div class="container" id="forum-area">
            <?php echo $__env->make('course_player.forum.question_body', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    </div>
</div>

<?php $__env->startPush('js'); ?>
    <script>
        "use strict";

        $(document).ready(function() {
            function initializeSummernote() {
                $('textarea#summernote').summernote({
                    height: 180, // set editor height
                    minHeight: null, // set minimum height of editor
                    maxHeight: null, // set maximum height of editor
                    focus: true, // set focus to editable area after initializing summernote
                    toolbar: [
                        ['color', ['color']],
                        ['font', ['bold', 'italic', 'underline', 'clear']],
                        ['fontsize', ['fontsize']],
                        ['para', ['ul', 'ol']],
                        ['table', ['table']],
                        ['insert', ['link']]
                    ]
                });
            }

            initializeSummernote();

            $('#forum-area').on('click', '.show-form', function(e) {
                e.preventDefault();

                let btnType = $(this).attr('id');
                let data = {
                    course_id: "<?php echo e($course_details->id); ?>"
                };
                let url = "<?php echo e(route('forum.question.create')); ?>";

                // if user click on edit button add a question id
                if (btnType == 'edit-question') {
                    data.question_id = $(this).data('question-id');
                    url = "<?php echo e(route('forum.question.edit')); ?>";
                } else if (btnType == 'reply') {
                    data.parent_question_id = $(this).data('parent-question-id');
                    url = "<?php echo e(route('forum.question.reply.create')); ?>";
                } else if (btnType == 'reply-edit') {
                    data.reply_id = $(this).data('reply-id');
                    url = "<?php echo e(route('forum.question.reply.edit')); ?>";
                }

                $.ajax({
                    type: "get",
                    url: url,
                    data: data,
                    success: function(response) {
                        $('#forum-area').empty().append(response);
                        initializeSummernote();
                    }
                });
            });

            $('#forum-area').on('click', '#questions', function(e) {
                e.preventDefault();
                $.ajax({
                    type: "get",
                    url: "<?php echo e(route('forum.questions')); ?>",
                    data: {
                        course_id: "<?php echo e($course_details->id); ?>"
                    },
                    success: function(response) {
                        $('#forum-area').empty().append(response);
                        initializeSummernote();
                    }
                });
            });
        });
    </script>
<?php $__env->stopPush(); ?>
<?php /**PATH /home2/yvrgircc/public_html/ariseskilltech.com/resources/views/course_player/forum/index.blade.php ENDPATH**/ ?>