<?php
    $model = $model ?? $property ?? null;
?>

<?php if($model->images): ?>
    <section class="flat-gallery-single">
        <?php $__currentLoopData = (array) $model->images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php if($loop->first): ?>
                <a href="<?php echo e(RvMedia::getImageUrl($image)); ?>" data-fancybox="gallery" class="item1 box-img">
                    <?php echo e(RvMedia::image($image, $model->name, attributes: ['fetchpriority' => 'high'], lazy: false)); ?>

                    <div class="box-btn">
                        <span class="tf-btn primary"><?php echo e(__('View All Photos (:count)', ['count' => count($model->images)])); ?></span>
                    </div>
                </a>
            <?php else: ?>
                <a href="<?php echo e(RvMedia::getImageUrl($image)); ?>" class="item-<?php echo e($loop->iteration); ?> box-img" data-fancybox="gallery" style="<?php echo \Illuminate\Support\Arr::toCssStyles(['display: none' => $loop->iteration > 5]) ?>">
                    <?php echo e(RvMedia::image($image, $model->name)); ?>

                </a>
            <?php endif; ?>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </section>
<?php endif; ?>
<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/views/real-estate/single-layouts/partials/gallery-grid.blade.php ENDPATH**/ ?>