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

File "24eebfac97d4b937cef71e30ffacfe3f.php"

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

<div class="w-100">
    <!-- Tab-2-Content -->
    <div class="mb-3 d-flex gap-2 align-items-center flex-wrap">
        <a href="#" onclick="ajaxModal('<?php echo e(route('modal', ['admin.course.create_section', 'id' => $course_details->id])); ?>', '<?php echo e(get_phrase('Add new section')); ?>')" class="btn ol-btn-light ol-btn-sm"><?php echo e(get_phrase('Add section')); ?>

        </a>

        <?php if($sections->count() > 0): ?>
            <a href="#" onclick="ajaxModal('<?php echo e(route('modal', ['admin.course.lesson_type', 'id' => $course_details->id])); ?>', '<?php echo e(get_phrase('Add new lesson')); ?>')" class="btn ol-btn-light ol-btn-sm"><?php echo e(get_phrase('Add lesson')); ?></a>

            <a href="#" onclick="ajaxModal('<?php echo e(route('modal', ['admin.quiz.create', 'id' => $course_details->id])); ?>', '<?php echo e(get_phrase('Add new quiz')); ?>')" class="btn ol-btn-light ol-btn-sm"><?php echo e(get_phrase('Add quiz')); ?></a>

            <a href="#" onclick="ajaxModal('<?php echo e(route('modal', ['admin.course.section_sort', 'id' => $course_details->id])); ?>', '<?php echo e(get_phrase('Sort sections')); ?>')" class="btn ol-btn-light ol-btn-sm"><?php echo e(get_phrase('Sort Section')); ?></a>
        <?php endif; ?>
    </div>



    <ul class="ol-my-accordion">

        <?php $__empty_1 = true; $__currentLoopData = $sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <?php
                $lessons = DB::table('lessons')
                    ->join('sections', 'lessons.section_id', 'sections.id')
                    ->select('lessons.*', 'sections.title as section_title')
                    ->where('lessons.section_id', $section->id)
                    ->orderBy('sort')
                    ->get();
            ?>
            <li class="single-accor-item">
                <div class="accordion-btn-wrap">
                    <div class="accordion-btn-title d-flex align-items-center">
                        <h4 class="title"><?php echo e(++$key); ?>. <?php echo e($section->title); ?></h4>
                    </div>
                    <div class="accordion-button-buttons">

                        <?php if($lessons->count() > 0): ?>
                            <a href="#" onclick="ajaxModal('<?php echo e(route('modal', ['admin.course.lesson_sort', 'id' => $section->id])); ?>', '<?php echo e(get_phrase('Sort lessons')); ?>'); event.stopPropagation();" class="btn btn-outline-gray-small"><?php echo e(get_phrase('Sort Lessons')); ?>

                            </a>
                        <?php endif; ?>

                        <a href="#" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Edit section')); ?>" onclick="ajaxModal('<?php echo e(route('modal', ['admin.course.section_edit', 'id' => $section->id])); ?>', '<?php echo e(get_phrase('Edit section')); ?>'); event.stopPropagation();" class="edit">
                            <span class="fi-rr-pencil"></span>
                        </a>

                        <a href="#" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Delete section')); ?>" onclick="confirmModal('<?php echo e(route('admin.section.delete', $section->id)); ?>'); event.stopPropagation();" class="delete">
                            <span class="fi-rr-trash"></span>
                        </a>
                    </div>
                </div>
                <div class="accoritem-body d-hidden">
                    <ul class="list-group-3">
                        <?php if($lessons->count() > 0): ?>
                            <?php $__currentLoopData = $lessons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $lesson): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li>
                                    <h4 class="title"><?php echo e($lesson->title); ?></h4>

                                    <div class="buttons">
                                        <?php if($lesson->lesson_type == 'quiz'): ?>
                                            <a href="#" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Result')); ?>" onclick="ajaxModal('<?php echo e(route('modal', ['admin.quiz_result.index', 'id' => $lesson->id])); ?>', '<?php echo e(get_phrase('Result')); ?>', 'modal-xl')" class="edit-delete">
                                                <span class="fi fi-rr-clipboard-list-check"></span>
                                            </a>

                                            <a href="#" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Questions')); ?>" onclick="ajaxModal('<?php echo e(route('modal', ['admin.questions.index', 'id' => $lesson->id])); ?>', '<?php echo e(get_phrase('Questions')); ?>', 'modal-lg')" class="edit-delete">
                                                <span class="fi fi-rr-poll-h"></span>
                                            </a>

                                            <a href="#" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Edit quiz')); ?>" onclick="ajaxModal('<?php echo e(route('modal', ['admin.quiz.edit', 'id' => $lesson->id])); ?>', '<?php echo e(get_phrase('Edit quiz')); ?>')" class="edit-delete">
                                                <span class="fi-rr-pencil"></span>
                                            </a>
                                        <?php endif; ?>

                                        <?php if($lesson->lesson_type != 'quiz'): ?>
                                            <a href="#" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Edit lesson')); ?>" onclick="ajaxModal('<?php echo e(route('modal', ['admin.course.lesson_edit', 'id' => $lesson->id])); ?>', '<?php echo e(get_phrase('Edit lesson')); ?>')" class="edit-delete">
                                                <span class="fi-rr-pencil"></span>
                                            </a>
                                        <?php endif; ?>

                                        <a href="#" data-bs-toggle="tooltip" title="<?php echo e(get_phrase('Delete lesson')); ?>" onclick="confirmModal('<?php echo e(route('admin.lesson.delete', $lesson->id)); ?>')" class="edit-delete">
                                            <span class="fi-rr-trash"></span>
                                        </a>
                                    </div>
                                </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                            <li>
                                <h4 class="title"><?php echo e(get_phrase('No lessons are available.')); ?></h4>
                            </li>
                        <?php endif; ?>
                    </ul>
                </div>
            </li>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <li>
                <div class="row">
                    <div class="col-md-8">
                        <a onclick="ajaxModal('<?php echo e(route('modal', ['admin.course.create_section', 'id' => $course_details->id])); ?>', '<?php echo e(get_phrase('Add new section')); ?>')" href="#" class="add-section-block text-center mt-4">
                            <p class="sub-title"><i class="fi-rr-add"></i></p>
                            <h3 class="title text-15px mt-2 fw-500"><?php echo e(get_phrase('Add a new Section')); ?></h3>
                        </a>
                    </div>
                </div>
            </li>
        <?php endif; ?>
    </ul>
</div>
<?php /**PATH /home2/yvrgircc/public_html/ariseskilltech.com/resources/views/admin/course/curriculum.blade.php ENDPATH**/ ?>