<div class="tour-list__container list__container">
<div class="tour-list__view swiper-container tour-slider">
<div class="tour-list__list swiper-wrapper">
{% set mnths = ['', 'januaryRd'|trans, 'februaryRd'|trans, 'marchRd'|trans, 'aprilRd'|trans, 'mayRd'|trans, 'juneRd'|trans, 'julyRd'|trans, 'augustRd'|trans, 'septemberRd'|trans, 'octoberRd'|trans, 'novemberRd'|trans, 'decemberRd'|trans] %}
{% for tour in items %}
{% if statusHot is defined %}
{% set tourTitle = 'Горящий тур'|trans %}
{% else %}
{% set tourTitle = 'Тур'|trans %}
{% endif %}
{% set tourTitle = tourTitle ~ ' в ' ~ tour.name ~ ' ' ~ tour.stars ~ '☆ ' ~ tour.countryName ~ ', ' ~ tour.cityName %}
<a class="tour-list__item swiper-slide" href="/hotel/{{ tour.id }}-{{ tour.hrefName }}/{{ tour.offerId }}/?type={{ type ?? 'not-determined' }}&block={{ block ?? 'not-determined' }}" title="{{ tourTitle }}">
<span class="tour-list__item-photo" style="background-image: url('{{ tour.desktop_gallery }}');">
{% if not (tour.rating == '0.00' and tour.ratingBySite|length == 0) %}
<span class="tour-list__rating-list" >
{% if tour.ratingBySite|length > 0 %}
<span class="rating-list__container">
<span class="rating-list__bar-wrapper" data-rat-value="{{ tour.rating|round(2, 'common')|number_format(1, '.') }}">
<span class="rating-list__progressbar">
<span class="rating-list__bar" data-value="{{ tour.rating }}"></span>
</span>
{{ tour.rating|round(2, 'common')|number_format(1, '.') }}
</span>
<span class="rating-list__popup">
<span class="rating-list__popup-list">
{% set sum = 0 %}
{% for rating in tour.ratingBySite %}
<span class="rating-list__popup-item">
<span class="rating-list__popup-item-logo rating-list__popup-item-logo-{{ rating.name }}"></span>
<span class="rating-list__popup-item-rating-container">
<span class="rating-list__bar-wrapper small">
<span class="rating-list__progressbar">
<span class="rating-list__bar" data-value="{{ rating.rating }}"></span>
</span>
{{ rating.rating|round(2, 'common')|number_format(1, '.') }}
</span>
<span class="rating-list__popup-item-grades">{{ rating.reviews }} {{ 'оценок'|trans }}</span>
</span>
</span>
{% set sum = sum + rating.reviews %}
{% endfor %}
</span>
<span class="rating-list__popup-footer">
<span>{{ 'Средний балл'|trans }}</span>
<span class="rating-list__popup-item-rating-container" data-rat-val="{{ tour.rating|round(2, 'common')|number_format(1, '.') }}">
<span class="rating-list__bar-wrapper">
<span class="rating-list__progressbar">
<span class="rating-list__bar" data-value="{{ tour.rating }}"></span>
</span>
{{ tour.rating|round(2, 'common')|number_format(1, '.') }}
</span>
<span class="rating-list__popup-item-grades">
<span class="rating-list__popup-item-grades-text" style="display: none">Недостаточно оценок для расчета</span>
<span class="rating-list__popup-item-grades-val">{{ sum }} {{ 'оценок'|trans }}</span>
</span>
</span>
</span>
</span>
</span>
{% endif %}
</span>
{% endif %}
</span>
<noscript>
<img width="100%" src="{{ tour.desktop_gallery }}" alt="{{ tourTitle }}" >
</noscript>
<span class="tour-list__item-info">
<span class="tour-list__item-hotel-name">
<span class="tour-list__hotel-stars">{{ tour.stars }} <i class="icon icon-star"></i></span>
<span class="tour-list__hotel-name" title="{{ tour.name }}">
<span>{{ tour.name }}</span>
</span>
</span>
<span class="tour-list__item-location" title="{{ tour.countryName }}, {{ tour.cityName }}"><i class="icon icon-16px i16-location-4"></i>{{ tour.countryName }}, {{ tour.cityName }}</span>
<span class="tour-list__item-decoration"></span>
<span class="tour-list__item-duration"><i class="icon icon-16px i16-charact-7"></i>
{% if tour.length-1 is not null %}{{ tour.length-1 }}{% if tour.length-1 in [1,21] %} {{ 'ночь'|trans}}{% elseif tour.length-1 in [2,3,4,22,23,24] %} {{ 'ночи'|trans}}{% else %} {{ 'ночей'|trans}}{% endif %}{% endif %},
{{ tour.date|date("j") }} {{ mnths[tour.date|date("n")] }}</span>
<span class="tour-list__item-food"><i class="icon icon-16px i16-charact-1"></i>{{ tour.food|trans }}</span>
<span class="tour-list__item-duration-food">{{ tour.date|date("j") }} {{ mnths[tour.date|date("n")] }} <i></i>
{% if tour.length-1 is not null %}{{ tour.length-1 }}{% if tour.length-1 in [1,21] %} {{ 'ночь'|trans}}{% elseif tour.length-1 in [2,3,4,22,23,24] %} {{ 'ночи'|trans}}{% else %} {{ 'ночей'|trans}}{% endif %}{% endif %}
<i></i> {{ tour.food|trans }}</span>
<span class="tour-list__item-total-sum"><span class="item-sum">{{ tour.marketPrice|round|number_format(0, '', ' ') }} {{ market.currency.name }}</span> {{ 'за 2-х'|trans }}{% if tour.transport == 'air' %} {{ 'с'|trans }} {{ 'перелётом'|trans }}{% elseif tour.transport == 'bus' %} {{ 'на'|trans }} {{ 'автобусе'|trans }}{% endif %}{% if route in ['app_country_search', 'app_city_search', 'app_city_search_departure_city', 'app_country_search_departure_city', 'app_country_search_season', 'app_city_search_season'] and tour.fromCityRd is not null %} {{ 'из'|trans }} {{ tour.fromCityRd }}{% endif %}</span>
<span class="tour-list__item-buy-tour">{{ 'Где купить тур?'|trans }}</span>
</span>
</a>
{% endfor %}
</div>
</div>
<div class="swiper-button swiper-button-prev"></div>
<div class="swiper-button swiper-button-next"></div>
<div class="spoiler__container">
<div class="spoiler__button not-toggable show-more-tours-button">
<span>
<i class="icon icon-darr-blue"></i>
{{ 'Больше'|trans }}
</span>
</div>
</div>
</div>