{% if realEstateOptions|length > 0 %}
{% if realEstateOptionsCarousel is not defined %} {% set realEstateOptionsCarousel = realEstateOptions %}{% endif %}
{% if realEstateOptionsCarousel|length > 0 %}
<div class="realEstates-carousel">
<div class="swiper-content">
<div class="swiper-container carousel">
<div class="swiper-wrapper">
{% for realEstateOption in realEstateOptionEntity.shuffleItems(realEstateOptionsCarousel)|slice(0, 6) %}
<div class="swiper-slide">
{% include '@TrinityProjectssites/frontend/realestate/card_option.html.twig' with {'realEstateOption': realEstateOption} %}
</div>
{% endfor %}
</div>
<div class="swiper-pagination"></div>
{# <div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div> #}
</div>
</div>
{% if realEstateOptionsCarousel|length > 6 %}
<div class="text-center">
<a class="btn btn-gradient" href="{{path(config.overviewpage.slugkey)}}">{{'Bekijk alle kavels'|trans}} <i class="fa fa-arrow-right"></i></a>
</div>
{% endif %}
</div>
{% endif %}
{% endif %}