<!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 %}
    	    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    {{ encore_entry_link_tags('app_sovamed') }}
        {% endblock %}

        {% block javascripts %}
            {{ encore_entry_script_tags('app_sovamed') }}
        {% endblock %}
        
        {% block js %}{% endblock %}
     
    </head>
    <body>
        <div class="с-container main-container">
            <div class="left-sidebar">
                <a href="/" class="logo-link">
                    <img src="/images/logo.svg" alt="" class="logo">
                    <img src="/images/mobile-logo.svg" alt="" class="mobile-logo">
                </a>

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

                <span class="copyright">© {{ "now"|date('Y') }} Семья клиник «СОВА»</span>
            </div>

            <div class="center-content-2">
                <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>

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

        {{ include('_change_region.html.twig') }}
    </body>
</html>
