<?php
    $cols = max((int)(substr($shortcode->number_of_columns, -1)), 1);
    $cols = min($cols, 6);
    $rows = array_chunk($tabs, $cols);
?>

<?php $__currentLoopData = $rows; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php if($row[0]['image']): ?>
        <div class="my-40 box-image grid-<?php echo e($cols); ?> gap-30">
            <?php $__currentLoopData = $row; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php if($image = $item['image']): ?>
                    <div class="overflow-hidden">
                        <?php echo e(RvMedia::image($image, $item['caption'] ?: __('image'), attributes: ['class' => 'round-12'])); ?>

                        <?php if($caption = $item['caption']): ?>
                            <figcaption class="figure-caption text-center"><?php echo BaseHelper::clean($caption); ?></figcaption>
                        <?php endif; ?>
                    </div>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/partials/shortcodes/content-image/index.blade.php ENDPATH**/ ?>