{% if specialistMore.hasReviews %}
{% set reviews = specialistMore.reviews %}
<div id="reviews"  data-controller="slideshow" class="owl-carousel owl-theme hide">
    {% for index, review in reviews %}
        <div class="staff-review slide">
        {% if review.active == true  %}
            <h6><b>{{ review.author }}</b></h6>
            <hr>
            <div class="rating mb-2">
                {% for i in 1..5 %}
                    {% if review.rating|float >= i %}
                        <i class="fa fa-star" aria-hidden="true"></i>
                    {% else %}
                        <i class="fa fa-star-o" aria-hidden="true"></i>           
                    {% endif %}
                {% endfor %}
            </div>
            {% autoescape  'html' %}
               
                {% set message = minText(review.message) %}

                {% if message.crop %}
                    <div id="crop-{{ review.id }}" class="crop-message">{{ message.text }}</div>
                    <div id="full-{{ review.id }}" class="full-message d-none">{{ review.message|striptags }}</div>
                {% else %}
                    <div class="full-message">{{ message.text|striptags }}</div>
                {% endif %}

                {% if message.crop %}
                    <button class="btn-show show-msg mt-3" data-show-id="{{ review.id }}">весь отзыв</button>
                {% endif %}

                <p>Дата написания: {{ review.dateCreate|date('d.m.Y', timezone='Europe/Moscow') }}</p>
            
                 <a class="reviews-block__link" rel="nofollow" target="_blank" href="{{ review.source }}">
                    Перейти на отзыв с портала
                </a>
            {% endautoescape %}    
        {% endif %}
        </div>
    {% endfor %}
</div>
{% endif %}