Viewing file: 999b410f4ef7d71480cbc134d9cbba4233e6a8b3.php (2.15 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$products = $homeService->getProducts($component->showcase_type, $component->total_products, $component->query);
$flashProduct = $component->sidebar == 'flash_sale' ? $products->shift() : null;
$product_col = $homeService->getColumnCount($component, $component->total_products);
$themeOption = \Modules\CMS\Http\Models\ThemeOption::getAll();
$layout = optional($component->page)->layout;
if (!$layout) {
$layout = \Modules\CMS\Entities\Page::firstWhere('default', '1')->layout;
}
$isEnableProduct = option($layout . '_template_product', '');
?>
<?php if($component->sidebar && $component->sidebar_position == 'left'): ?>
<?php echo $__env->make('cms::partials.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endif; ?>
<?php if($component->showcase_type): ?>
<div
class="w-full">
<div class="grid grid-cols-2 md:grid-cols-<?php echo e($product_col); ?> gap-5 mt-5 md:mt-0">
<?php if($products): ?>
<?php $__empty_1 = true; $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<?php echo $__env->make('cms::partials.product', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<h2><?php echo e(__('No products')); ?></h2>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if($component->sidebar && $component->sidebar_position == 'right'): ?>
<?php echo $__env->make('cms::partials.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endif; ?>
<script>
sliderInitiate();
</script>
<?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/Modules/CMS/Resources/views/templates/blocks/sub/product-grid-with-sidebar-template-v1-data.blade.php ENDPATH**/ ?>
|