{% set statusVisibleSport = false %}
{% for name, sport in sports %}
{% if attribute(dictionarySports, name) is defined and sport == 1 %}
{% set statusVisibleSport = true %}
{% endif %}
{% endfor %}
{% if statusVisibleSport %}
<div class="container">
<div class="container__header">
<h3 class="container__header-title">
{{ 'Развлечения и спорт'|trans }}
</h3>
</div>
<div class="card-with-icon__list">
{% for name, sport in sports %}
{% if attribute(dictionarySports, name) is defined and sport == 1 %}
{% if route in ['app_country_search_departure_city', 'app_city_search_departure_city'] %}
{% set departureCityForLink = departureCity.id %}
{% else %}
{% set departureCityForLink = 1544 %}
{% endif %}
<a class="card-with-icon__item" href="{{ searchUrlGenerator.generate(page.info.id, name, departureCityForLink) }}" title="{{ name|trans }} в {{ page.info.namePr }}">
<i class="icon icon-32px i{{ attribute(dictionarySports, name).iconCode }}"></i>
<span class="card-with-icon__item-name">{{ attribute(page.hotelServices, name)|capitalize }}</span>
</a>
{% endif %}
{% endfor %}
</div>
<div class="spoiler__container">
<div class="spoiler__button not-toggable show-more-cards-button">
<span>
<i class="icon icon-darr-blue"></i>
{{ 'Больше'|trans }}
</span>
</div>
</div>
</div>
{% endif %}