관리-도구
편집 파일: 75c04969c1cef36f4df138111b0e311a.php
<?php $translations = parse_translation($bundle); $categoryTranslations = parse_translation($bundle->category); $imagePath = 'lms/courses/bundles/thumbnails'; $defaultThumbnail = 'lms/frontend/assets/images/420x252.svg'; $thumbnail = !empty($bundle?->thumbnail) && fileExists($imagePath, $bundle->thumbnail) ? asset('storage/' . $imagePath . '/' . $bundle->thumbnail) : asset($defaultThumbnail); $randomKey = random_string(2); $currency = $bundle?->currency ?? 'USD-$'; $currencySymbol = get_currency_symbol($currency); ?> <div class="flex flex-col bg-white rounded-2xl h-full p-5 group-data-[card-layout=list]:flex-row [&.card-border]:border [&.card-border]:border-border [&.card-border]:hover:shadow-md custom-transition group/course <?php echo e(isset($borderClass) ? 'card-border' : ''); ?>"> <!-- COURSE THUMBNAIL --> <div class="relative aspect-video rounded-xl overflow-hidden"> <img data-src="<?php echo e($thumbnail); ?>" class="course-grid-thumb-img w-full group-hover/topCourse:scale-110 duration-300" alt="Course thumbnail" /> <!-- badge --> <?php $__currentLoopData = $bundle->levels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $level): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $levelTranslations = parse_translation($level); ?> <span class="badge b-solid badge-secondary-solid rounded-full !text-heading dark:text-white absolute top-4 left-4 rtl:left-auto rtl:right-4 z-10"> <?php echo e($levelTranslations['name'] ?? ($level->name ?? '')); ?> </span> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <!-- COURSE CONTENT --> <div class="relative mt-6 group-data-[card-layout=list]:mt-0 group-data-[card-layout=list]:ml-6"> <div class="flex-center-between"> <?php if(isset($bundle?->category?->title)): ?> <div class="badge badge-heading-outline b-outline rounded-full shrink-0"> <?php echo e($categoryTranslations['title'] ?? $bundle?->category?->title); ?> </div> <?php endif; ?> <div class="text-primary text-xl !leading-none font-bold text-right shrink-0 flex items-center gap-1.5 ms-auto"> <span><?php echo e($currencySymbol); ?><?php echo e(dotZeroRemove($bundle?->price ?? 0)); ?></span> </div> </div> <h6 class="area-title font-bold !text-xl mt-3 group-hover/course:text-primary custom-transition"> <a href="<?php echo e(route('bundle.detail', $bundle->slug)); ?>" class="line-clamp-2" aria-label="bundle title"> <?php echo e($translations['title'] ?? ($bundle->title ?? '')); ?> </a> </h6> </div> </div> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\components\cards\bundle\card-one.blade.php ENDPATH**/ ?>