<!-- @todo add permissions for each menu sidebar menu: : style can be found in sidebar.less -->
{% import '@ChamiloTheme/Macros/box.html.twig' as macro %}

{% autoescape false %}

{% if is_granted('IS_AUTHENTICATED_FULLY') %}
    {{ macro.panel(
        'Profile' | trans,
        mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:profileMenu', {'automenu': 'navbar', 'stacked':false})
    ) }}

    {{ macro.panel(
        'Courses' | trans,
        mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:courseMenu', {'automenu': 'navbar', 'stacked':false})
    ) }}

    {{ macro.panel(
        'Sessions' | trans,
        mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:sessionMenu', {'automenu': 'navbar', 'stacked':false})
    ) }}

    {{ macro.panel(
        'Skills' | trans,
        mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:skillsMenu', {'automenu': 'navbar', 'stacked':false})
    ) }}
{% else %}
    {# Plugin login before/after tpls #}
    {% if plugin_login_top is not null %}
        <div id="plugin_login_top">
            {{ plugin_login_top }}
        </div>
    {% endif %}

    {% include '@ChamiloTheme/Sidebar/login.html.twig' %}

    {% if plugin_login_bottom is not null %}
        <div id="plugin_login_bottom">
            {{ plugin_login_bottom }}
        </div>
    {% endif %}
{% endif %}
    {{ macro.panel(
    'Help' | trans,
    mopa_bootstrap_menu('ChamiloCoreBundle:LeftMenuBuilder:helpMenu', {'automenu': 'pills', 'stacked':true})
    ) }}
{% endautoescape %}
