{% trans_default_domain 'menus' %}

{% set activeHome  =  '' %}
{% set activeInvestigation  =  '' %}
{% set activeBroadcast  =  '' %}
{% set activeRapport  =  '' %}

{% if app.request.attributes.get('_route') == 'app_home' %}
    {% set activeHome  =  'active show' %}
{% endif %}

{% if app.request.attributes.get('_route') in ['app_investigation_index', 'app_investigation_add', 'app_investigation_show', 'app_investigation_edit', 'app_investigation_admin_active'] %}
    {% set activeInvestigation  =  'active show' %}
{% endif %}


{% if app.request.attributes.get('_route') == 'app_broadcast_index' %}
    {% set activeBroadcast  =  'active show' %}
{% endif %}



{% if app.request.attributes.get('_route') == 'app_rapport_index' %}
    {% set activeRapport  =  'active show' %}
{% endif %}


<div class="az-header">
    <div class="container">
        <div class="az-header-left">
            <a href="{{ path('app_home') }}" class="az-logo"><span></span> azia</a>
            <a href="" id="azMenuShow" class="az-header-menu-icon d-lg-none"><span></span></a>
        </div>
        <!-- az-header-left -->
        <div class="az-header-menu">
            <div class="az-header-menu-header">
                <a href="{{ path('app_home') }}" class="az-logo"><span></span> azia</a>
                <a href="" class="close">&times;</a>
            </div>
            <!-- az-header-menu-header -->
            <ul class="nav">
                <li class="nav-item {{ activeHome }}">
                    <a href="{{ path('app_home') }}" class="nav-link"><i class="typcn typcn-chart-area-outline"></i> {{ 'home'|trans }}</a>
                </li>
                <li class="nav-item {{ activeInvestigation }}">
                    <a href="" class="nav-link with-sub"><i class="typcn typcn-document"></i> {{ 'investigation'|trans }}</a>
                    <nav class="az-menu-sub">
                        <a href="{{ path('app_investigation_add') }}" class="nav-link">{{ 'investigation_create'|trans }}</a>
                        <a href="{{ path('app_investigation_index') }}" class="nav-link">{{ 'investigation_liste'|trans }}</a>
                    </nav>
                </li>
                <li class="nav-item {{ activeBroadcast }}">
                    <a href="{{ path('app_broadcast_index') }}" class="nav-link"><i class="typcn typcn-tabs-outline"></i> {{ 'broadcast'|trans }}</a>
                </li>
                <li class="nav-item {{ activeRapport }}">
                    <a href="{{ path('app_rapport_index') }}" class="nav-link"><i class="typcn typcn-chart-bar-outline"></i> {{ 'rapport'|trans }}</a>
                </li>
            </ul>
        </div>
        <!-- az-header-menu -->
        <div class="az-header-right">
        <a href="{{ path('change_language', {'lang':'fr'}) }}" class="az-header-search-link az-header-flag"><i class="flag-icon flag-icon-fr"></i></a>
        <a href="{{ path('change_language', {'lang':'en'}) }}" class="az-header-search-link az-header-flag"><i class="flag-icon flag-icon-gb"></i></a>
        <a href="{{ path('change_language', {'lang':'ar'}) }}" class="az-header-search-link az-header-flag"><i class="flag-icon flag-icon-sa"></i></a>

            
            <!-- az-header-notification -->
            <div class="dropdown az-profile-menu">
                <a href="" class="az-img-user"><img src="{{ asset('assets/img/faces/face1.jpg') }}" alt=""></a>
                <div class="dropdown-menu">
                    <div class="az-header-profile">
                        <div class="az-img-user">
                            <img src="{{ asset('assets/img/faces/face1.jpg') }}" alt="">
                        </div>
                        <!-- az-img-user -->
                        <h6>{{ app.user.pseudo }}</h6>
                        <span>Premium Member</span>
                    </div>
                    <!-- az-header-profile -->
                    <a href="" class="dropdown-item"><i class="typcn typcn-edit"></i> {{ 'profile_edit'|trans }}</a></a>
                    <a href="" class="dropdown-item"><i class="typcn typcn-cog-outline"></i> {{ 'account_settings'|trans }}</a>
                    <a href="{{ path('app_sign_out') }}" class="dropdown-item"><i class="typcn typcn-power-outline"></i> {{ 'sign_out'|trans }}</a>
                </div>
                <!-- dropdown-menu -->
            </div>
        </div>
        <!-- az-header-right -->
    </div>
    <!-- container -->
</div>