{% if cities|length > 0 %}
<div class="container__header">
<h2 class="container__header-title">
{% if route == 'app_countries' %}
{{ 'Популярные курорты'|trans }}
{% elseif route == 'app_city_search' %}
{{ 'Похожие курорты'|trans }}
{% endif %}
</h2>
</div>
<div class="resort-list__slider-wrapper">
<div class="resort-list__slider swiper-container">
<div class="resort-list__container swiper-wrapper">
{% for city in cities %}
<a class="resort-list__item swiper-slide" href="{{ path('app_city_search', { country: city.countryNameTr, city: city.nameTr }) }}" title="{{ city.name }}">
<span class="resort-list__item-photo"
style="background-image: url('{{ city.desktop_gallery }}');">
<span class="resort-list__item-photo-row">
<span class="resort-list__item-photo-name">{{ city.name }}</span>
<span class="resort-list__item-photo-details">
{% if city.weather is defined and city.weather is not null %}
<i class="icon icon-16px i16-other-5"></i>
<span>
{% if '-' in city.weather or city.weather is same as('0') %}{% else %}+{% endif %}{{ city.weather }}°
</span>
{% endif %}
{% if city.water is defined and city.water is not null %}
<i class="icon icon-16px i16-other-6"></i>
<span>
{% if '-' in city.water or city.water is same as('0') %}{% else %}+{% endif %}{{ city.water }}°
</span>
{% endif %}
</span>
</span>
</span>
<span class="resort-list__item-info">
<p>{{ city.text }}</p>
{% if route in ['app_countries', 'app_city_search'] %}
{% if city.price is defined and city.price is not null %}
<span class="resort-list__item-price">
{{ 'Туры от'|trans }} <span>{{ city.price|round|number_format(0, '', ' ') }} {{ market.currency.name }}</span>
</span>
{% endif %}
{% endif %}
</span>
</a>
{% endfor %}
</div>
</div>
<div class="swiper-button swiper-button-prev"></div>
<div class="swiper-button swiper-button-next"></div>
</div>
{% endif %}