<div class="blanc wrapper">
<div class="container padding-bottom-5 padding-off">
<!-- LOGO -->
<div class="col-md-2 col-sm-2 padding-off-mobile">
<a href="{{ path('ac_platform_homepage') }}">
<img src="{{ asset('build/images/front/logo-ateya.png')}}" class="img-responsive logo">
</a>
</div>
<!-- MENU -->
<div class="col-md-7 col-sm-7 col-xs-12 menu-general">
<div class="navbar-header">
<!-- NAVIGATION MOBILE-->
<button aria-controls="bs-navbar" aria-expanded="false" class="navbar-toggle" data-target="#bs-navbar" data-toggle="collapse" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="menu-placeholder" class="visible-xs-block"></div>
<nav class="navbar navbar-collapse collapse" id="bs-navbar" style="height:90px">
<ul class="nav navbar-nav" class="padding-off ">
<li>
<div class="btn-group btn-group-block" role="group">
<button class="sub-menu-btn btn-group-ateya" type="button" data-menu="menu-destinations" data-level="1">{{ 'menu.destinations' |trans({},'app') |raw }}
<span class="caret hidden-xs"></span>
<span class="iconDir glyphicon glyphicon-menu-right visible-xs-block"></span>
</button>
{{ render(controller('App\\Controller\\RechercheController::destinations')) }}
</div>
{{ render(controller('App\\Controller\\DefaultController::themes')) }}
{% if haspromo is defined and haspromo %}
<div class="btn-group btn-group-block" role="group" >
<button class="sub-menu-btn btn-group-ateya" type="button" data-menu="menu-promos" data-level="1">{{ 'menu.a_saisir' |trans({},'app') |raw }}
<span class="caret hidden-xs"></span>
<span class="iconDir glyphicon glyphicon-menu-right visible-xs-block"></span>
</button>
<ul id="menu-promos" class="sub-menu sub-menu-1 menu-principal" >
<li class="col-md-12 col-sm-12 col-xs-12 mega-menu">
{% include "/front/Moteur/promos.html.twig" %}
</li>
</ul>
</div>
{% endif %}
</li>
<li class="hidden-md hidden-sm mt-3">
<div class="col-xs-6 mb-3">
{% if app.user %}
{% set compte = app.session.get("compte") %}
<a href="{{ path('mon_compte') }}" class="compte" title="{{ 'menu.compte' |trans({},'app') |raw }}"><span class="glyphicon glyphicon-user"></span> {{ app.user.prenom }} {{ app.user.nom |slice(0, 1)}}</a>
<a class="logout " href="{{ path('_logout') }}" title="{{ 'menu.se_deconnecter' |trans({},'app') |raw }}"> </a>
{% else %}
<a href="{{ path('compte') }}" class="compte" title="{{ 'menu.compte' |trans({},'app') |raw }}">
<span class="glyphicon glyphicon-user"></span> {{ 'menu.compte' |trans({},'app') |raw }}
</a>
{% endif %}
</div>
<div class="col-xs-6 mb-3">
<div id="trad_menu_mobile" class="ml-5 compte-mobile">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ locale_name[app.request.locale] }}<span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-language">
{% if app.request.locale != 'en' and route_name is not null %}
<a class="dropdown-item" href="{{ path(route_name, params|merge({ _locale: 'en' })) }}">{{ locale_name['en'] }}</a>
{% endif %}
{% if app.request.locale != 'fr' and route_name is not null %}
<a class="dropdown-item" href="{{ path(route_name, params|merge({ _locale: 'fr' })) }}">{{ locale_name['fr'] }}</a>
{% endif %}
</div>
</div>
</div>
</li>
</ul>
</nav>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 menu-general">
<!-- BEGIN COMPTE ET LANGUE DESKTOP-->
<div class="hidden-xs pull-right ">
{% if is_granted('ROLE_CUSTOMER') %}
<a class="compte" href="{{ path('mon_compte') }}" title="{{ 'menu.compte' |trans({},'app') |raw }}"><span class="glyphicon glyphicon-user"></span> {{ app.user.prenom }} {{ app.user.nom |slice(0, 1)}}</a>
<a class="logout" href="{{ path('_logout') }}" title="{{ 'menu.se_deconnecter' |trans({},'app') |raw }}"><span class="glyphicon glyphicon-log-out"></span></a>
{% elseif is_granted('ROLE_ADMIN') or is_granted('ROLE_SUPER_ADMIN') %}
<a class="compte" href="{{ path('ac_admin_homepage') }}" title="{{ 'menu.compte' |trans({},'app') |raw }}"><span class="glyphicon glyphicon-user"></span> {{ app.user.prenom }} {{ app.user.nom |slice(0, 1)}} [ADMIN]</a>
<a class="logout" href="{{ path('_logout') }}" title="{{ 'menu.se_deconnecter' |trans({},'app') |raw }}"><span class="glyphicon glyphicon-log-out"></span></a>
{% else %}
<a class="compte" href="{{ path('compte') }}" title="{{ 'menu.se_connecter' |trans({},'app') |raw }}"><span class="glyphicon glyphicon-user"></span> {{ 'menu.se_connecter' |trans({},'app') |raw }}</a>
{% endif %}
<div id="trad_menu_desktop" class="ml-5 pr-3 pull-right">
<a class="dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ locale_name[app.request.locale] }}<span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right mr-3" aria-labelledby="dropdown-language">
{% if app.request.locale != 'en' and route_name is not null %}
<a class="dropdown-item" href="{{ path(route_name, params|merge({ _locale: 'en' })) }}">{{ locale_name['en'] }}</a>
{% endif %}
{% if app.request.locale != 'fr' and route_name is not null %}
<a class="dropdown-item" href="{{ path(route_name, params|merge({ _locale: 'fr' })) }}">{{ locale_name['fr'] }}</a>
{% endif %}
</div>
</div>
</div>
<!-- END COMPTE ET LANGUE DESKTOP-->
</div>
</div>
</div>