<!DOCTYPE html>
<html lang="{{ app.request.get('_locale') }}">
    <head>
        <meta charset="UTF-8">
        <title>{% block title %}{{ context.get['app'].name ?? company_name }}{% endblock %}</title>
        {% include 'admin/layouts/_partials/_favicon.html.twig' %}
        {% include 'admin/layouts/_partials/_styles.html.twig' %}
        {% block stylesheets %}{% endblock %}
    </head>
    <body>
    {% if app.user and app.user.appTheme == 1 %}
        {% set class = 'bg-dark' %}
        {% set bg = 'bg-dark' %}
        {% set coverProfile = asset('assetics/admin/global_assets/images/demo/cover2.png') %}
    {% elseif context.get['app'].appTheme == 1 %}
        {% set class = 'bg-dark' %}
        {% set bg = 'bg-dark' %}
        {% set coverProfile = asset('assetics/admin/global_assets/images/demo/cover2.png') %}
    {% else %}
        {% set class = '' %}
        {% set bg = 'bg-white' %}
        {% set coverProfile = asset('assetics/admin/global_assets/images/demo/cover2-ligth.png') %}
    {% endif %}
        <!-- Main navbar -->
        {% include 'admin/layouts/_navs/_navheader.html.twig' %}
        <!-- /main navbar -->

        <!-- Page content -->
        <div class="page-content">
            <!-- Main sidebar -->
            {% include 'admin/layouts/_navs/_navsidebar.html.twig' %}
            <!-- /main sidebar -->

            {% block secondSidebar %}{% endblock %}

            <!-- Main content -->
            <div class="content-wrapper">

                <!-- Inner content -->
                <div class="content-inner">

                    <!-- Page header -->
                    <div class="mb-3 border-top border-top-primary">
                        {% block pageheader %}{% endblock %}
                    </div>
                    <!-- /page header -->

                    <!-- Content area -->
                    <div class="content">
                        {% block body %}{% endblock %}
                    </div>
                    <!-- /content area -->

                    <!-- Footer -->
                    {% include 'admin/layouts/_partials/_footer.html.twig' %}
                    <!-- /footer -->

                </div>

            </div>
            <!-- /main content -->
        </div>
        <!-- /page content -->

        {% include 'admin/layouts/_partials/_scripts.html.twig' %}
        {% block javascripts %}{% endblock %}
        {% include 'notifications/notyf.html.twig' %}
    </body>
</html>
