templates/base-default/header-client.html.twig line 1

Open in your IDE?
  1. {% set route_name = app.request.attributes.get('_route') %}
  2. {% set route_params = app.request.attributes.get('_route_params') %}
  3. <header class="main-header">
  4.     <div class="header-top fl-wrap">
  5.         <div class="container">
  6.             <div class="logo-holder">
  7.                 <a href="{{ url('app_client_home') }}">
  8.                     <h2 class="brand-text">
  9.                         <span class="brand-logo" style="font-weight: bold; font-size: 1.5rem; color: #f89800">
  10.                             <i class="fas fa-bus"></i>
  11.                         </span>
  12.                         <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>
  13.                     </h2>
  14.                 </a>
  15.             </div>
  16.             {% if is_granted('ROLE_CLIENT') %}
  17.                 <a href="#" class="add-hotel">Demander un devis <span><i class="far fa-calculator"></i></span></a>                     
  18.             {% else %}
  19.             <a href="#" class="add-hotel show-search-button-out"><span>Rechecher</span> <i class="far fa-search"></i></a>                                     
  20.             {% endif %}
  21.             <div class="show-reg-form">
  22.                 {% if is_granted('ROLE_CLIENT') %}
  23.                     <a href="#" class="text-white"> 
  24.                         <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>
  25.                     </a>
  26.                 {% else %}
  27.                     <a href="{{ url('app_front_login') }}" class="text-white btn-login-client"> 
  28.                         <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> 
  29.                     </a>
  30.                 {% endif %}
  31.             </div>
  32.             <div class="lang-wrap">
  33.                 <div class="show-lang"><img src="{{ asset('front/images/lan/2.png') }}" alt=""> <span>Fr</span><i class="fa fa-caret-down"></i></div>
  34.                 <ul class="lang-tooltip green-bg">
  35.                     <li><a href="#"><img src="{{ asset('front/images/lan/1.png') }}" alt=""> Eng</a></li>
  36.                 </ul>
  37.             </div>
  38.             {% if is_granted('ROLE_CLIENT') %}
  39.             <div class="currency-wrap">
  40.                 <div class="show-currency-tooltip">
  41.                     <span class="text-theme-orange mr-1 text-uppercase">{{ app.user.creditBalance | number_format(2, ',', ' ') }} Crédit(s) </span>
  42.                     <span class="text-white text-uppercase mr-1"> Restant</span>
  43.                     <a href="{{ url('app_client_credit_reload') }}" class="text-uppercase btn-recharger">Recharger</a>
  44.                 </div>
  45.             </div>
  46.             {% endif %}
  47.         </div>
  48.     </div>
  49.     <div class="header-inner fl-wrap">
  50.         <div class="container">
  51.             {% if is_granted('ROLE_CLIENT') %}
  52.             <div class="show-search-button"><span>Rechercher</span> <i class="fas fa-search"></i></div>
  53.             {% else %}
  54.             <div class="show-search-button max-view-540px"><i class="fas fa-search"></i></div>
  55.             {% endif %}
  56.             {% if is_granted('ROLE_CLIENT') %}
  57.             <div class="wishlist-link"><i class="fas fa-bell"></i><span class="wl_counter">0</span></div>
  58.                 <div class="header-user-menu">
  59.                     <div class="header-user-name">
  60.                         <span>
  61.                             {% if app.user.client %}
  62.                                 {% if app.user.avatar %}
  63.                                 <img src="{{ asset('uploads/files/user/avatar/' ~ app.user.avatar) }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
  64.                                 {% else %}
  65.                                 <img src="{{ asset('front/images/avatar/1.jpg') }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
  66.                                 {% endif %}
  67.                             {% else %}
  68.                                 <img src="{{ asset('front/images/avatar/1.jpg') }}" alt="{{ app.user.firstname ~' '~ app.user.lastname }}">
  69.                             {% endif %}
  70.                         </span>
  71.                         Mon compte
  72.                     </div>
  73.                     <ul>
  74.                         <li class="{% if route_name starts with 'app_client_account_profile' %}active{% endif %}"><a href="{{ url('app_client_account_profile') }}"> Profil</a></li>
  75.                         <li><a href="#"> Messages </a></li>
  76.                         <li  class="{% if route_name starts with 'app_client_devis_all' %}active{% endif %}"><a href="{{ url('app_client_devis_all') }}"> Mes devis </a></li>
  77.                         <li><a href="#"> Mes avis </a></li>
  78.                         <li class="{% if route_name starts with 'app_client_credit_transactions' %}active{% endif %}"><a href="{{ url('app_client_credit_transactions') }}"> Mes transactions </a></li>
  79.                         {# {% if app.user %}
  80.                             {% if app.user.client %}
  81.                                 {% if app.user.client.collaborateurAccount|length > 0 %} #}
  82.                                     <li class="dropdown-divider"><a href="#"> Espace collaborateur </a></li>
  83.                                 {# {% endif %}
  84.                             {% endif %}
  85.                         {% endif %} #}                       
  86.                         <li class="dropdown-divider pt-8px"><a href="{{ url('app_front_logout') }}"><i class="far fa-sign-out"></i> Se déconnecter </a></li>
  87.                     </ul>
  88.                 </div>
  89.             {% endif %}
  90.             <div class="home-btn"><a href="{{ url('app_client_home') }}"><i class="fas fa-home"></i></a></div>
  91.             <div class="nav-button-wrap color-bg">
  92.                 <div class="nav-button">
  93.                     <span></span><span></span><span></span>
  94.                 </div>
  95.             </div>
  96.             <div class="nav-holder main-menu">
  97.                 <nav>
  98.                     <ul>
  99.                         <li>
  100.                             <a href="{{ url('app_client_home') }}" class="{% if route_name starts with 'app_client_home' %}act-link{% endif %}">Transport </a>
  101.                         </li>
  102.                         <li><a href="#">Vol</a></li>
  103.                         <li><a href="#">Séjour sur mesure</a></li>
  104.                         <li><a href="#">Voyage</a></li>
  105.                         <li><a href="#">Hôtel</a></li>
  106.                     </ul>
  107.                 </nav>
  108.             </div>
  109.             <!-- notification-wrap-->            
  110.             <div class="wishlist-wrap scrollbar-inner novis_wishlist">
  111.                 <div class="box-widget-content">
  112.                     <div class="widget-posts fl-wrap">
  113.                         <ul>
  114.                             <li class="clearfix">
  115.                                 <a href="#"  class="widget-posts-img"><img src="{{ asset('front/images/gal/1.jpg') }}" class="respimg" alt=""></a>
  116.                                 <div class="widget-posts-descr">
  117.                                     <a href="#" title="">Park Central</a>
  118.                                     <div class="listing-rating card-popup-rainingvis" data-starrating2="5"></div>
  119.                                     <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>
  120.                                     <span class="rooms-price">$80 <strong> /  Awg</strong></span>
  121.                                 </div>
  122.                             </li>
  123.                             <li class="clearfix">
  124.                                 <a href="#"  class="widget-posts-img"><img src="{{ asset('front/images/gal/1.jpg') }}" class="respimg" alt=""></a>
  125.                                 <div class="widget-posts-descr">
  126.                                     <a href="#" title="">Holiday Home</a>
  127.                                     <div class="listing-rating card-popup-rainingvis" data-starrating2="3"></div>
  128.                                     <div class="geodir-category-location fl-wrap"><a href="#"><i class="fas fa-map-marker-alt"></i> 75 PRINCE ST, NY, USA</a></div>
  129.                                     <span class="rooms-price">$50 <strong> /   Awg</strong></span>
  130.                                 </div>
  131.                             </li>
  132.                             <li class="clearfix">
  133.                                 <a href="#"  class="widget-posts-img"><img src="{{ asset('front/images/gal/1.jpg') }}" class="respimg" alt=""></a>
  134.                                 <div class="widget-posts-descr">
  135.                                     <a href="#" title="">Moonlight Hotel</a>
  136.                                     <div class="listing-rating card-popup-rainingvis" data-starrating2="4"></div>
  137.                                     <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>
  138.                                     <span class="rooms-price">$105 <strong> /  Awg</strong></span>
  139.                                 </div>
  140.                             </li>
  141.                         </ul>
  142.                     </div>
  143.                 </div>
  144.             </div>
  145.             <!-- notification-wrap end--> 
  146.         </div>
  147.     </div>
  148.     
  149.     <!-- header-search -->
  150.     <div class="header-search vis-search">
  151.         <div class="container">
  152.             <div class="row">
  153.                 <!-- header-search-input-item -->
  154.                 <div class="col-sm-4">
  155.                     <div class="header-search-input-item fl-wrap location autocomplete-container">
  156.                         <label>Destination or Hotel Name</label>
  157.                         <span class="header-search-input-item-icon"><i class="fal fa-map-marker-alt"></i></span>
  158.                         <input type="text" placeholder="Location" class="autocomplete-input" id="autocompleteid" value=""/>
  159.                         <a href="#"><i class="fal fa-dot-circle"></i></a>
  160.                     </div>
  161.                 </div>
  162.                 <!-- header-search-input-item end -->
  163.                 <!-- header-search-input-item -->
  164.                 <div class="col-sm-3">
  165.                     <div class="header-search-input-item fl-wrap date-parent">
  166.                         <label>Date In-Out </label>
  167.                         <span class="header-search-input-item-icon"><i class="fal fa-calendar-check"></i></span>
  168.                         <input type="text" placeholder="When" name="header-search"   value=""/>
  169.                     </div>
  170.                 </div>
  171.                 <!-- header-search-input-item end -->                             
  172.                 <!-- header-search-input-item -->
  173.                 <div class="col-sm-3">
  174.                     <div class="header-search-input-item fl-wrap">
  175.                         <div class="quantity-item">
  176.                             <label>Rooms</label>
  177.                             <div class="quantity">
  178.                                 <input type="number" min="1" max="3" step="1" value="1">
  179.                             </div>
  180.                         </div>
  181.                         <div class="quantity-item">
  182.                             <label>Adults</label>
  183.                             <div class="quantity">
  184.                                 <input type="number" min="1" max="3" step="1" value="1">
  185.                             </div>
  186.                         </div>
  187.                         <div class="quantity-item">
  188.                             <label>Children</label>
  189.                             <div class="quantity">
  190.                                 <input type="number" min="0" max="3" step="1" value="0">
  191.                             </div>
  192.                         </div>
  193.                     </div>
  194.                 </div>
  195.                 <!-- header-search-input-item end -->                             
  196.                 <!-- header-search-input-item -->
  197.                 <div class="col-sm-2">
  198.                     <div class="header-search-input-item fl-wrap">
  199.                         <button class="header-search-button" onclick="window.location.href='listing.html'">Search <i class="far fa-search"></i></button>
  200.                     </div>
  201.                 </div>
  202.                 <!-- header-search-input-item end -->                                                          
  203.             </div>
  204.         </div>
  205.         <div class="close-header-search"><i class="fal fa-angle-double-up"></i></div>
  206.     </div>
  207.     <!-- header-search end -->
  208. </header>