<?php
    $promoImages = $data->images()->get();
?>
<?php if($promoImages->count() > 0): ?>
    <div class="site-section my-60">
        <div class="container">
            <div class="row gy-3 gx-3 justify-content-center">
                <?php
                    if ($promoImages->count() == 1) {
                        $class = 'col-12';
                        $size = getFileSize('singlePromoBanner');
                        $path = getFilePath('singlePromoBanner');
                    } elseif ($promoImages->count() == 2) {
                        $class = 'col-6';
                        $size = getFileSize('doublePromoBanner');
                        $path = getFilePath('doublePromoBanner');
                    } else {
                        $class = 'col-4';
                        $size = getFileSize('triplePromoBanner');
                        $path = getFilePath('triplePromoBanner');
                    }
                ?>
                <?php $__currentLoopData = $promoImages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $promoImage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="<?php echo e($class); ?>">
                        <a href="<?php echo e($promoImage->link??'javascript:void(0)'); ?>" class="d-block overlay-effects rounded--5">
                            <img src="<?php echo e(getImage(null, $size)); ?>" data-src="<?php echo e(getImage($path . '/' . $promoImage->image, $size)); ?>" class="w-100 lazyload" alt="">
                        </a>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/creativedesignbd/ecommerce7.creativedesign.com.bd/core/resources/views/templates/basic/sections/promo_banner.blade.php ENDPATH**/ ?>