{% if data %}
<div class="container">
<div class="container__header">
<h3 class="container__header-title">
{{ 'Туры из других городов'|trans }}
</h3>
</div>
<div class="card-with-icon__list">
{% for departureCityItem in data %}
{% if (departureCity is defined and departureCityItem.nameTr != departureCity.nameTr) or departureCity is not defined %}
{% set departureCityUrl = false %}
{% if departureCityItem.nameTr == 'kiev' %}
{% if route in ['app_country_search_departure_city','app_country_search_season'] %}
{% set departureCityUrl = path('app_country_search', {country: country}) %}
{% elseif(route not in ['app_country_search','app_city_search']) %}
{% set departureCityUrl = path('app_city_search', {country: country, city: city}) %}
{% endif %}
{% else %}
{% if route in ['app_country_search','app_country_search_departure_city','app_country_search_season'] %}
{% set departureCityUrl = path('app_country_search_departure_city', {country: country, departureCity: departureCityItem.nameTr}) %}
{% else %}
{% set departureCityUrl = path('app_city_search_departure_city', {country: country, city: city, departureCity: departureCityItem.nameTr}) %}
{% endif %}
{% endif %}
{% if departureCityUrl %}
<a class="card-with-icon__item"
href="{{ departureCityUrl }}"
title="{{ 'Туры'|trans }} {{ 'из'|trans }} {{ departureCityItem.name }}">
<i class="icon icon-32px i32-categories-25"></i>
<span class="card-with-icon__item-name">{{ 'Туры'|trans }} {{ 'из'|trans }} {{ departureCityItem.name }}</span>
</a>
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}