<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>{% block title %}{% endblock %}</title>

        {% if app.debug == false %}
            {{ include('/_metrika.html.twig') }}
            {{ include('/_calltouch.html.twig') }}
        {% endif %}
        
        {% block stylesheets %}
            <link rel="icon" type="image/jpg" href="/favicon_wmtmed.ico"/>
    	    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    {{ encore_entry_link_tags('app_wmtmed') }}
        {% endblock %}

        {% block javascripts %}
            {{ encore_entry_script_tags('app_wmtmed') }}
        {% endblock %}
        
        {% block js %}{% endblock %}
     
    </head>
    <body>
        {# <div class="ny_top"></div> #}
        <div class="с-container main-container">
            <div class="left-sidebar">
                <a href="/" class="logo-link">
                    <img src="/img/logo_wmt/logo.svg" alt="wmtmed" class="logo" width="100%">
                    <img src="/img/logo_wmt/mobile-logo.png" alt="wmtmed" class="mobile-logo" width="50px">
                </a>

                {{ include('menu.html.twig') }}

                <span class="copyright">© {{ "now"|date('Y') }} КЛИНИКА WMT</span>
            </div>

            <div class="center-content">
                {% block top %} 
                    <div class="top-section">
                        <h1 class="title" id="page-title">
                            
                            {% if app.request.get('_route') in ['security_card'] and app.request.get('tab') == 'allTest' %}
                                 Результаты анализов
                            {% else %}
                                {{ title }}
                            {% endif %}

                        </h1>

                        <div class="search-wrap search-input">
                            <select id="select-search">
                                <option value="name">по имени</option>
                                <option value="dep">по отделению</option>
                            </select>
                            <input data-controller="searchNameInput" type="text" class="form-control" placeholder="Поиск:">
                            <div class="show-content d-none"></div>
                        </div>
                    </div>
                {% endblock %}
                <div id="alert-system" data-controller="alertSystem" data-auth="{% if app.user %}true{% else %}false{% endif %}" data-tech-maintenance="{% if tech_maintenance %}true{% else %}false{% endif %}">
                    {% for message in app.flashes('notice') %}
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            {{ message }}
                            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                    {% endfor %}
                    {% for message in app.flashes('success') %}
                        <div class="alert alert-success alert-dismissible fade show" role="alert">
                            {{ message }}
                            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                        </div>
                    {% endfor %}
                </div>

                {% block body %}{% endblock %}
            </div>

            {% block sidebar %}

                <div class="right-content">
                    {% if (isMobile() == false) %}
                        <div class="right-sidebar__top">
                            <div id="favoritesNaw" class="favorites staff-icons-list"></div>
                            <a href="{{ path('default_favorites') }}" id="favoritesBtn" class="button">Мои врачи</a>
                        </div>
                    {% endif %}
                    
                    {% block bonusWidget %}
                    {% endblock %}

                    <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 %}

            <div class="up-arrow d-none" data-controller="scrollTop"></div>

        </div>

        <div class="modal fade" id="popup" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog modal-lg" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title"></h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                    <div id="popup-body" class="modal-body"></div>
                </div>
            </div>
        </div>  

        <div id="cookie_note" class="d-none" data-controller="cookieNotice">
            <p>Мы используем файлы cookie, чтобы улучшить работу сайта и предоставить вам больше возможностей. 
            <br>Продолжая использовать сайт, вы соглашаетесь с <a href="/docs/wmtmed-cookie.pdf" target="_blank" rel="noreferrer noopener"> политикой использования</a> cookie-файлов.</p>
            <button class="button cookie_accept btn btn-outline-secondary btn-white btn-sm" data-action="click->cookieNotice#accept">
                Я согласен
            </button>
        </div>

        {{ include('_change_region.html.twig') }}

        <script data-controller="jivo" async></script>
    </body>
</html>
