<div class="product-widget product-widget__reviews" id="reviews">
<div class="product-widget__heading">{{ title|default|raw }}</div>
<div class="product-reviews__block">
{% if product is defined and product %}
<div class="block-header">
<div class="item">
<div class="item__counter">{{ product.ratingScore|default('—')|raw }}</div>
<div class="item__text">средняя оценка</div>
</div>
<div class="item">
<div class="item__counter">{{ product.reviewsCount|default(0) }}</div>
<div class="item__text">отзывов</div>
</div>
</div>
{% endif %}
<div class="item">
<div class="reviews-slider swiper">
<div class="reviews-slider__arrow reviews-slider__arrow_prev">
<svg><use xlink:href="/img/sprite_new.svg#arrowLeft"></use></svg>
</div>
<div class="reviews-slider__arrow reviews-slider__arrow_next">
<svg><use xlink:href="/img/sprite_new.svg#arrowRight"></use></svg>
</div>
<div class="reviews-slider__pagination"></div>
<div class="swiper-wrapper">
{% for review in reviews %}
<div class="swiper-slide">
<div class="reviews__slide">
<div class="reviews__slide-rating" data-rating-score="{{ review.ratingCount|default(0) }}"></div>
<div class="reviews__slide-heading">{{ review.name|default|raw }}</div>
<div class="reviews__slide-text">
<div class="content">
{{ review.description|default|raw }}
</div>
<div class="text-sign">{{ review.sing|default|raw }}</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% if leave_review_link is defined and leave_review_link %}
<div class="reviews-buttons">
<a href="{{ leave_review_link }}" class="reviews-button" target="_blank">оставить отзыв</a>
</div>
{% endif %}
</div>
</div>