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

{% block title %}{{ title }} - {{ specialist.name }}{% endblock %}

{% block js %}
    <script id="smartCaptcha" src="https://smartcaptcha.yandexcloud.net/captcha.js"></script>
{% endblock %}

{% block body %}
     <div class="main">        
        <div id="specialist">
            <div class="block-title">{{ specialistMore.defaultLocation.address }}</div>
            <div class="specialist-items" data-st="{{ st|date('Y-m-d') }}" data-en="{{ en|date('Y-m-d') }}" data-controller="specialistView">
                {% include '/specialist/_item.html.twig' with {'link': false} %}
            </div>
        </div>
        {% if isShowInRegion([91,92,93]) %}
            {% if specialistMore.hasPrice %}
                <br>
                <div class="staff-detail block-content mb-0">
                    <h3>Стоимость</h3>
                    <ul>
                        {% for price in specialistMore.prices %}
                            <li>{{ price.schname }} — {{ price.priceInfo.price }} ₽</li>
                        {% endfor %}
                    </ul>
                </div>
            {% endif %}
        {% endif %}
        <br>
        <div class="staff-detail block-content mb-4">
            {% autoescape  'html' %}
                {{ specialist.description|raw }}
            {% endautoescape %}
        </div>

        {% include '/specialist/_reviews.html.twig' %}
    </div>

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

{% endblock %}
