{% set route_name = app.request.attributes.get('_route') %}
{% set route_params = app.request.attributes.get('_route_params') %}
<header class="main-header">
<div class="header-top fl-wrap">
<div class="container">
<div class="logo-holder">
<a href="{{ url('app_client_home') }}">
<h2 class="brand-text">
<span class="brand-logo" style="font-weight: bold; font-size: 1.5rem; color: #f89800">
<i class="fas fa-bus"></i>
</span>
<span style="color: #3496d8; font-weight: bold; font-size: 1.5rem">RYV</span><span style="color: #fff; font-weight: bold; font-size: 1.5rem">UP</span>
</h2>
</a>
</div>
{% if is_granted('ROLE_CLIENT') %}
<a href="#" class="add-hotel">Demander un devis <span><i class="far fa-calculator"></i></span></a>
{% else %}
<a href="#" class="add-hotel show-search-button-out"><span>Rechecher</span> <i class="far fa-search"></i></a>
{% endif %}
<div class="show-reg-form">
{% if is_granted('ROLE_CLIENT') %}
<a href="#" class="text-white">
<i class="fas fa-handshake"></i> Bonjour <span class="header-text-seconnecter-in"> {% if (app.user.firstname ~ ' ' ~ app.user.lastname)|length < 17 %}{{ app.user.firstname ~ ' ' ~ app.user.lastname }}{% elseif app.user.firstname|length < 17 %}{{ app.user.firstname }}{% elseif app.user.lastname|length < 17 %}{{ app.user.lastname }}{% else %}{{ (app.user.firstname ~ ' ' ~ app.user.lastname)|slice(0,15) }}.{% endif %}</span>
</a>
{% else %}
<a href="{{ url('app_front_login') }}" class="text-white btn-login-client">
<i class="fa fa-sign-in"></i> <span class="header-text-seconnecter {% if route_name starts with 'app_front_login' %}active{% endif %}"> Se connecter </span>
</a>
{% endif %}
</div>
<div class="lang-wrap">
<div class="show-lang"><img src="{{ asset('front/images/lan/2.png') }}" alt=""> <span>Fr</span><i class="fa fa-caret-down"></i></div>
<ul class="lang-tooltip green-bg">
<li><a href="#"><img src="{{ asset('front/images/lan/1.png') }}" alt=""> Eng</a></li>
</ul>
</div>
{% if is_granted('ROLE_CLIENT') %}
<div class="currency-wrap">
<div class="show-currency-tooltip">
<span class="text-theme-orange mr-1 text-uppercase">{{ app.user.creditBalance | number_format(2, ',', ' ') }} Crédit(s) </span>
<span class="text-white text-uppercase mr-1"> Restant</span>
<a href="{{ url('app_client_credit_reload') }}" class="text-uppercase btn-recharger">Recharger</a>
</div>
</div>
{% endif %}
</div>
</div>
<div class="header-inner fl-wrap">
<div class="container">
{% if is_granted('ROLE_CLIENT') %}
<div class="show-search-button"><span>Rechercher</span> <i class="fas fa-search"></i></div>
{% else %}
<div class="show-search-button max-view-540px"><i class="fas fa-search"></i></div>
{% endif %}
{% if is_granted('ROLE_CLIENT') %}
<div class="wishlist-link"><i class="fas fa-bell"></i><span class="wl_counter">0</span></div>
<div class="header-user-menu">
<div class="header-user-name">
<span>
{% if app.user.client %}
{% if app.user.avatar %}
<img src="{{ asset('uploads/files/user/avatar/' ~ app.user.avatar) }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
{% else %}
<img src="{{ asset('front/images/avatar/1.jpg') }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
{% endif %}
{% else %}
<img src="{{ asset('front/images/avatar/1.jpg') }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
{% endif %}
</span>
Mon compte
</div>
<ul>
<li class="{% if route_name starts with 'app_client_account_profile' %}active{% endif %}"><a href="{{ url('app_client_account_profile') }}"> Profil</a></li>
<li><a href="#"> Messages </a></li>
<li class="{% if route_name starts with 'app_client_devis_all' %}active{% endif %}"><a href="{{ url('app_client_devis_all') }}"> Mes devis </a></li>
<li><a href="#"> Mes avis </a></li>
<li class="{% if route_name starts with 'app_client_credit_transactions' %}active{% endif %}"><a href="{{ url('app_client_credit_transactions') }}"> Mes transactions </a></li>
{# {% if app.user %}
{% if app.user.client %}
{% if app.user.client.collaborateurAccount|length > 0 %} #}
<li class="dropdown-divider"><a href="#"> Espace collaborateur </a></li>
{# {% endif %}
{% endif %}
{% endif %} #}
<li class="dropdown-divider pt-8px"><a href="{{ url('app_front_logout') }}"><i class="far fa-sign-out"></i> Se déconnecter </a></li>
</ul>
</div>
{% endif %}
<div class="home-btn"><a href="{{ url('app_client_home') }}"><i class="fas fa-home"></i></a></div>
<div class="nav-button-wrap color-bg">
<div class="nav-button">
<span></span><span></span><span></span>
</div>
</div>
<div class="nav-holder main-menu">
<nav>
<ul>
<li>
<a href="{{ url('app_client_home') }}" class="{% if route_name starts with 'app_client_home' %}act-link{% endif %}">Transport </a>
</li>
<li><a href="#">Vol</a></li>
<li><a href="#">Séjour sur mesure</a></li>
<li><a href="#">Voyage</a></li>
<li><a href="#">Hôtel</a></li>
</ul>
</nav>
</div>
<!-- notification-wrap-->
<div class="wishlist-wrap scrollbar-inner novis_wishlist">
<div class="box-widget-content">
<div class="widget-posts fl-wrap">
<ul>
<li class="clearfix">
<a href="#" class="widget-posts-img"><img src="{{ asset('front/images/gal/1.jpg') }}" class="respimg" alt=""></a>
<div class="widget-posts-descr">
<a href="#" title="">Park Central</a>
<div class="listing-rating card-popup-rainingvis" data-starrating2="5"></div>
<div class="geodir-category-location fl-wrap"><a href="#"><i class="fas fa-map-marker-alt"></i> 40 JOURNAL SQUARE PLAZA, NJ, US</a></div>
<span class="rooms-price">$80 <strong> / Awg</strong></span>
</div>
</li>
<li class="clearfix">
<a href="#" class="widget-posts-img"><img src="{{ asset('front/images/gal/1.jpg') }}" class="respimg" alt=""></a>
<div class="widget-posts-descr">
<a href="#" title="">Holiday Home</a>
<div class="listing-rating card-popup-rainingvis" data-starrating2="3"></div>
<div class="geodir-category-location fl-wrap"><a href="#"><i class="fas fa-map-marker-alt"></i> 75 PRINCE ST, NY, USA</a></div>
<span class="rooms-price">$50 <strong> / Awg</strong></span>
</div>
</li>
<li class="clearfix">
<a href="#" class="widget-posts-img"><img src="{{ asset('front/images/gal/1.jpg') }}" class="respimg" alt=""></a>
<div class="widget-posts-descr">
<a href="#" title="">Moonlight Hotel</a>
<div class="listing-rating card-popup-rainingvis" data-starrating2="4"></div>
<div class="geodir-category-location fl-wrap"><a href="#"><i class="fas fa-map-marker-alt"></i> 70 BRIGHT ST NEW YORK, USA</a></div>
<span class="rooms-price">$105 <strong> / Awg</strong></span>
</div>
</li>
</ul>
</div>
</div>
</div>
<!-- notification-wrap end-->
</div>
</div>
<!-- header-search -->
<div class="header-search vis-search">
<div class="container">
<div class="row">
<!-- header-search-input-item -->
<div class="col-sm-4">
<div class="header-search-input-item fl-wrap location autocomplete-container">
<label>Destination or Hotel Name</label>
<span class="header-search-input-item-icon"><i class="fal fa-map-marker-alt"></i></span>
<input type="text" placeholder="Location" class="autocomplete-input" id="autocompleteid" value=""/>
<a href="#"><i class="fal fa-dot-circle"></i></a>
</div>
</div>
<!-- header-search-input-item end -->
<!-- header-search-input-item -->
<div class="col-sm-3">
<div class="header-search-input-item fl-wrap date-parent">
<label>Date In-Out </label>
<span class="header-search-input-item-icon"><i class="fal fa-calendar-check"></i></span>
<input type="text" placeholder="When" name="header-search" value=""/>
</div>
</div>
<!-- header-search-input-item end -->
<!-- header-search-input-item -->
<div class="col-sm-3">
<div class="header-search-input-item fl-wrap">
<div class="quantity-item">
<label>Rooms</label>
<div class="quantity">
<input type="number" min="1" max="3" step="1" value="1">
</div>
</div>
<div class="quantity-item">
<label>Adults</label>
<div class="quantity">
<input type="number" min="1" max="3" step="1" value="1">
</div>
</div>
<div class="quantity-item">
<label>Children</label>
<div class="quantity">
<input type="number" min="0" max="3" step="1" value="0">
</div>
</div>
</div>
</div>
<!-- header-search-input-item end -->
<!-- header-search-input-item -->
<div class="col-sm-2">
<div class="header-search-input-item fl-wrap">
<button class="header-search-button" onclick="window.location.href='listing.html'">Search <i class="far fa-search"></i></button>
</div>
</div>
<!-- header-search-input-item end -->
</div>
</div>
<div class="close-header-search"><i class="fal fa-angle-double-up"></i></div>
</div>
<!-- header-search end -->
</header>