관리-도구
편집 파일: e5b8829d900e9c334f8293509f2e2733.php
<div class="bg-white relative pt-16 sm:pt-24 lg:pt-[120px] h-full"> <div class="container"> <!-- HEADER --> <div class="grid grid-cols-12 gap-4 items-center"> <div class="col-span-full text-center max-w-[594px] mx-auto"> <h2 class="area-title"> <?php echo e(translate('Our Popular Courses')); ?> </h2> </div> </div> <!-- BODY --> <div class="swiper popular-courses-slider mt-10 lg:mt-[60px]"> <div class="swiper-wrapper"> <?php if( !empty($courses) ): ?> <?php $__currentLoopData = $courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $reviews = review($course); $imagePath = 'lms/courses/thumbnails'; $defaultThumbnail = 'lms/frontend/assets/images/420x252.svg'; $thumbnail = !empty($course?->thumbnail) && fileExists($imagePath, $course->thumbnail) ? asset('storage/' . $imagePath . '/' . $course->thumbnail) : asset($defaultThumbnail); ?> <?php if (isset($component)) { $__componentOriginalbf44cc54471eb682151244b673363f07 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbf44cc54471eb682151244b673363f07 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::cards.course.card-three','data' => ['course' => $course,'thumbnail' => $thumbnail,'reviews' => $reviews]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::cards.course.card-three'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['course' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($course),'thumbnail' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($thumbnail),'reviews' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($reviews)]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbf44cc54471eb682151244b673363f07)): ?> <?php $attributes = $__attributesOriginalbf44cc54471eb682151244b673363f07; ?> <?php unset($__attributesOriginalbf44cc54471eb682151244b673363f07); ?> <?php endif; ?> <?php if (isset($__componentOriginalbf44cc54471eb682151244b673363f07)): ?> <?php $component = $__componentOriginalbf44cc54471eb682151244b673363f07; ?> <?php unset($__componentOriginalbf44cc54471eb682151244b673363f07); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> </div> <!-- ALL COURSE LINK --> <div class="flex-center mt-10 lg:mt-[60px]"> <a href="<?php echo e(route('course.list')); ?>" class="btn b-outline btn-primary-outline btn-xl !rounded-none font-bold" aria-label="View all courses" > <?php echo e(translate('View Courses')); ?> </a> </div> </div> <?php /**PATH D:\www\edulab\Modules\LMS\resources\themes\elearning-education\components\course\popular-course.blade.php ENDPATH**/ ?>