{% extends template ~ '.html.twig' %}

{% block title %}{{ title }}{% endblock %}

{% block js %}
    <script id="smartCaptcha" src="https://smartcaptcha.yandexcloud.net/captcha.js"></script>
{% endblock %}
{% block sidebar %}
    <div class="right-content">
        
        <div class="filter">
            
            {% block filter %}
                <div class="filter__title">Найти специалиста</div>
                {{ render(path('specialist_filter')) }} 
            {% endblock %}
        </div>

        <div class="banner" data-controller="bannersRegion"></div>
    </div>
{% endblock %}
{% block body %}
<div id="specialist" class="main">
    <div class="specialist-items staff-block-wrap" data-controller="specialistView" data-st="{{ st|date('Y-m-d') }}" data-en="{{ en|date('Y-m-d') }}">

        {% for specialist in pagination %}
            {% include '/specialist/_item.html.twig' with {'link': true} %}
           
        {% else %}
            <p>Вы пока не добавили врачей в избранное</p>
        {% endfor %}         
    </div>
    <div class="d-block text-center">
        {{ knp_pagination_render(pagination) }}
    </div>
</div>

{% include '/specialist/_calendar.html.twig' %}

{% endblock %}