<ul class="navbar-nav navbar-nav-icons flex-row align-items-center">
    {% block navbarMenuIcon %}
        {% for item in getIncludeViews('MenuTemplate', 'MenuIconBefore') %}
            {% include item['path'] %}
        {% endfor %}
        <div class="theme-control-toggle fa-icon-wait px-2 p-2">
            <input class="form-check-input ms-0 theme-control-toggle-input" type="checkbox" data-theme-control="phoenixTheme" value="dark" id="themeControlToggle" />
            <label class="mb-0 theme-control-toggle-label theme-control-toggle-light" for="themeControlToggle" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Switch theme" style="height:32px;width:32px;"><span class="uil uil-moon fs-6"></span></label>
            <label class="mb-0 theme-control-toggle-label theme-control-toggle-dark" for="themeControlToggle" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Switch theme" style="height:32px;width:32px;"><span class="uil uil-sun fs-6"></span></label>
        </div>
        <li class="nav-item{{ template == 'MegaSearch.html.twig' ? ' active' : '' }}"
            title="{{ trans('search') }}">
            <a class="nav-link" href="MegaSearch" id="menuIconSearch">
                <span  class="uil uil-search fs-6" style="height:19px;width:19px;margin-bottom: 2px;"></span>
            </a>
        </li>
        <li class="nav-item" title="{{ trans('help') }}">
            <a class="nav-link lh-1 pe-0" href="https://facturascripts.com/ayuda" target="_blank" rel="nofollow" data-bs-toggle="tooltip" data-bs-placement="bottom" id="menuIconHelp" title="SOPORTE">
                <span class="uil uil-exclamation-circle fs-6"></span>
            </a>
        </li>
        <li class="nav-item dropdown">
            <a class="nav-link lh-1 pe-0" href="#" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-haspopup="true" aria-expanded="false" id="menuIconUser" title="{{ trans('user') }}">
               <span class="uil uil-user-circle fs-6"></span>
            </a>
            <div class="dropdown-menu dropdown-menu-end navbar-dropdown-caret py-0 dropdown-profile shadow border" aria-labelledby="user-list" data-bs-popper="static">
                <div class="card position-relative border-0">
                    <a class="dropdown-item" href="{{ fsc.user.url() }}">
                        <i class="fas fa-user-circle fa-fw" aria-hidden="true"></i> {{ fsc.user.nick }}
                    </a>
                    <a class="dropdown-item send-email" href="SendMail">
                        <i class="fas fa-envelope fa-fw" aria-hidden="true"></i>
                        {{ trans('send-mail') }}
                    </a>
                    {% for item in getIncludeViews('MenuTemplate', 'MenuIconUser') %}
                        {% include item['path'] %}
                    {% endfor %}
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="{{ asset('login') }}?action=logout&multireqtoken={{ formToken(false) }}">
                        <i class="fas fa-door-open fa-fw" aria-hidden="true"></i> {{ trans('logout') }}
                    </a>
                </div>
                
            </div>
        </li>
        {% for item in getIncludeViews('MenuTemplate', 'MenuIconAfter') %}
            {% include item['path'] %}
        {% endfor %}
    {% endblock %}
</ul>
