<?php
    $backgroundColor = ($shortcode->background_color && $shortcode->background_color != 'transparent') ? $shortcode->background_color : '#161e2d';
?>

<section class="flat-section-v3" style="background-color: <?php echo e($backgroundColor); ?>">
    <div class="container">
        <?php if($shortcode->subtitle || $shortcode->title): ?>
            <div class="box-title text-center wow fadeInUpSmall" data-wow-delay=".2s" data-wow-duration="2000ms">
                <?php if($shortcode->subtitle): ?>
                    <div class="text-subtitle text-white"><?php echo BaseHelper::clean($shortcode->subtitle); ?></div>
                <?php endif; ?>
                <?php if($shortcode->title): ?>
                    <h2 class="section-title mt-4 text-white"><?php echo BaseHelper::clean($shortcode->title); ?></h2>
                <?php endif; ?>
            </div>
        <?php endif; ?>
        <div
            class="swiper tf-sw-categories wow fadeInUpSmall"
            data-wow-delay=".4s"
            data-wow-duration="2000ms"
            data-preview-lg="5"
            data-preview-md="4"
            data-preview-sm="3"
            data-space="40"
            <?php echo Theme::partial('shortcode-slider-attributes', compact('shortcode')); ?>

        >
            <div class="swiper-wrapper">
                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="swiper-slide">
                        <a href="<?php echo e($category->url); ?>" class="homeya-categories style-1" title="<?php echo e($category->name); ?>">
                            <?php
                                $iconImage = $category->getMetaData('icon_image', true);
                                $icon = $category->getMetaData('icon', true);
                            ?>
                            <?php if($iconImage || $icon): ?>
                                <div class="box-icon w-80 round">
                                    <?php if($iconImage): ?>
                                        <?php echo e(RvMedia::image($iconImage, $category->name, 'thumb')); ?>

                                    <?php elseif($icon): ?>
                                        <?php echo BaseHelper::renderIcon($icon); ?>

                                    <?php endif; ?>
                                </div>
                            <?php endif; ?>

                            <div class="content text-center">
                                <h6 class="line-clamp-1"><?php echo e($category->name); ?></h6>
                            </div>
                        </a>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
            <div class="sw-pagination sw-pagination-category"></div>
        </div>
    </div>
</section>
<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/partials/shortcodes/property-categories/styles/style-2.blade.php ENDPATH**/ ?>