templates/Front/Shop/v2/_header.html.twig line 1

Open in your IDE?
  1. <nav class="navbar navbar-light bg-white app-navbar">
  2.     <div class="col d-flex flex-row p-0 align-items-center navbar-brand-container">
  3.         <div id="productsMenuList" class="dropdown">
  4.             <button id="dropdownMenuButton" class="btn p-0" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="box-shadow: none;">
  5.                 <img id="menuIcon" src="{{ asset('assets/shop/images/icons/ic_menu_produse_black.png') }}" style="width: 40px"/>
  6.             </button>
  7.             <div class="dropdown-menu shadow-lg"  aria-labelledby="dropdownMenuButton" style="width: 325px; border: 0;">
  8.                 {% if lastProductStatus.rcaStatus is defined and lastProductStatus.rcaStatus %}
  9.                     <a class="text-decoration-none" href="{{ path('app_shop_rca_details') ? path('app_shop_rca_details', {'from': constant('App\\Entity\\Customer\\TrackerActivity::FROM_HEADER')}) : '#'}}">
  10.                         <div class="dropdown-item my-2 d-flex align-items-center">
  11.                             <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  12.                                 <img src="{{ asset('assets/shop/images/icons/ic_produse_rca_dark_48.png') }}"
  13.                                      height="35px"/>
  14.                             </div>
  15.                             <div class="d-flex align-items-center">
  16.                                 <h4 class="my-2">{{ 'app.ui.rca'|trans }}</h4>
  17.                             </div>
  18.                         </div>
  19.                     </a>
  20.                 {% endif %}
  21.                 {% if lastProductStatus.vignetteStatus is defined and lastProductStatus.vignetteStatus %}
  22.                     <a class="text-decoration-none" href="{{ path('app_shop_vignette') }}">
  23.                         <div class="dropdown-item my-2 d-flex align-items-center">
  24.                             <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  25.                                 <img src="{{ asset('assets/shop/images/icons/ic_produse_roviniete_dark_48.png') }}"
  26.                                      height="35px"/>
  27.                             </div>
  28.                             <div class="d-flex align-items-center">
  29.                                 <h4 class="my-2">{{ 'app.ui.vignette'|trans }}</h4>
  30.                             </div>
  31.                         </div>
  32.                     </a>
  33.                 {% endif %}
  34.                 {% if lastProductStatus.huVignetteStatus is defined and lastProductStatus.huVignetteStatus %}
  35.                     <a class="text-decoration-none" href="{{ path('app_shop_hu_vignette') }}">
  36.                         <div class="dropdown-item my-2 d-flex align-items-center">
  37.                             <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  38.                                 <img src="{{ asset('assets/shop/images/icons/ematrica_black.png') }}"
  39.                                      height="35px"/>
  40.                             </div>
  41.                             <div class="d-flex align-items-center">
  42.                                 <h4 class="my-2">{{ 'app.hu_vignette.hu_vignette'|trans }}</h4>
  43.                             </div>
  44.                         </div>
  45.                     </a>
  46.                 {% endif %}
  47.                 {% if lastProductStatus.deathInsuranceStatus is defined and lastProductStatus.deathInsuranceStatus %}
  48.                     <a class="text-decoration-none" href="{{ path('app_shop_death_insurance') }}">
  49.                         <div class="dropdown-item my-2 d-flex align-items-center">
  50.                             <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  51.                                 <img src="{{ asset('assets/shop/images/icons/person.png') }}" height="35px"/>
  52.                             </div>
  53.                             <div class="d-flex align-items-center">
  54.                                 <h4 class="my-2">{{ 'app.ui.nn_insurance'|trans }}</h4>
  55.                             </div>
  56.                         </div>
  57.                     </a>
  58.                 {% endif %}
  59.                 <a class="text-decoration-none" {% if lastProductStatus.peajStatus is defined and lastProductStatus.peajStatus %}href="{{ path('app_shop_peaj') }}" {% else %}href="https://www.taxadepod.ro/" target="_blank"{% endif %}>
  60.                     <div class="dropdown-item my-2 d-flex align-items-center">
  61.                         <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  62.                             <img src="{{ asset('assets/shop/images/icons/ic_produse_pod_dark_48.png') }}" height="35px"/>
  63.                         </div>
  64.                         <div class="d-flex align-items-center">
  65.                             <h4 class="my-2">{{ 'app.ui.toll_tax'|trans }}</h4>
  66.                         </div>
  67.                     </div>
  68.                 </a>
  69.                 {% if lastProductStatus.licenseRecoveryStatus is defined and lastProductStatus.licenseRecoveryStatus %}
  70.                     <a class="text-decoration-none" href="{{ path('app_shop_license_recovery') }}">
  71.                         <div class="dropdown-item my-2 d-flex align-items-center">
  72.                             <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  73.                                 <img src="{{ asset('assets/shop/images/icons/license.png') }}"height="35px"/>
  74.                             </div>
  75.                             <div class="d-flex align-items-center">
  76.                                 <h4 class="my-2">{{ 'app.ui.license_recovery'|trans }}</h4>
  77.                             </div>
  78.                         </div>
  79.                     </a>
  80.                 {% endif %}
  81.                 {% if lastProductStatus.telemedicineStatus is defined and lastProductStatus.telemedicineStatus %}
  82.                     <a class="text-decoration-none" href="{{ path('app_shop_telemedicine') }}">
  83.                         <div class="dropdown-item my-2 d-flex align-items-center">
  84.                             <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  85.                                 <img src="{{ asset('assets/shop/images/icons/umbrella_plus.png') }}" height="35px"/>
  86.                             </div>
  87.                             <div class="d-flex align-items-center">
  88.                                 <h4 class="my-2">{{ 'app.ui.telemedicine.menu_entry'|trans }}</h4>
  89.                             </div>
  90.                         </div>
  91.                     </a>
  92.                 {% endif %}
  93.                 {% if lastProductStatus.roadAssistanceStatus is defined and lastProductStatus.roadAssistanceStatus %}
  94.                     <a class="text-decoration-none" href="{{ path('app_shop_road_assistance') }}">
  95.                         <div class="dropdown-item my-2 d-flex align-items-center">
  96.                             <div class="mr-4 d-flex justify-content-center" style="width: 35px;">
  97.                                 <img src="{{ asset('assets/shop/images/icons/road_assistance.png') }}" height="35px"/>
  98.                             </div>
  99.                             <div class="d-flex align-items-center">
  100.                                 <h4 class="my-2">{{ 'app.ui.road_assistance'|trans }}</h4>
  101.                             </div>
  102.                         </div>
  103.                     </a>
  104.                 {% endif %}
  105.             </div>
  106.         </div>
  107.         <div id="productsMenuListMobile">
  108.             <button id="toggle-side-menu-close" class="btn closebtn p-0" type="button" style="box-shadow: none;display: none;">
  109.                 <img src="{{ asset('assets/shop/images/icons/ic_error_dark.png') }}" />
  110.             </button>
  111.             <button id="toggle-side-menu" class="btn p-0" type="button" style="box-shadow: none;">
  112.                 <img id="menuIcon" src="{{ asset('assets/shop/images/icons/ic_menu_produse_black.png') }}" />
  113.             </button>
  114.             {% include '@templates/Front/Shop/v2/_leftmenu.html.twig' %}
  115.         </div>
  116.         <a class="navbar-brand" href="{{ path('sylius_shop_homepage') }}">
  117.             {% if isTicketing is defined and isTicketing == "true"%}
  118.                 <img class="app-logo" alt="Scala logo"
  119.                      src="{{ asset('assets/shop/images/taxe-auto-logo.png', 'bootstrapTheme') }}"/>
  120.             {% else %}
  121.                     <img class="app-logo" alt="Roviniete logo"
  122.                          src="{{ asset('assets/shop/images/logo_new.png', 'bootstrapTheme') }}"/>
  123.             {% endif %}
  124.         </a>
  125.     </div>
  126.     <div class="col-4 d-none">
  127.         <div class="input-group float-right d-none" style="width: 30em;">
  128.             <span class="input-group-prepend btn-rounded" style="background-color: #FAFAFA">
  129.                 <btn class="btn input-group-text bg-transparent border-0">
  130.                        <img src="{{ asset('assets/shop/images/icons/ic_search_white.png') }}"
  131.                             width="20px"/>
  132.                 </btn>
  133.             </span>
  134.             <input id="inputSearch" class="form-control border-left-0 border form-rounded" type="hidden" placeholder="{{ 'app.ui.search'|trans }}"/>
  135.         </div>
  136.     </div>
  137.     <div class="col d-flex align-items-center p-0 justify-content-end">
  138.         {% if isTicketing is defined and isTicketing == "true"%}
  139.             <a class="app-nav-btn" href="#">
  140.                 <img class="app-nav-btn-img" id="phoneIconCallCenter"  data-placement="left" data-toggle="popover"
  141.                      data-content="<a href='tel:+40732773774'>{{ call_center_phone_ticketing }}</a>"
  142.                              src="{{ asset('assets/shop/images/icons/ic_menu_phone.png') }}"/>
  143.             </a>
  144.         {% else %}
  145.             <a class="app-nav-btn" href="#">
  146.                 <img class="app-nav-btn-img" id="phoneIconCallCenter"  data-placement="left" data-toggle="popover"
  147.                      data-content="<a href='tel:+40213009696'>{{ call_center_phone }}</a>"
  148.                      src="{{ asset('assets/shop/images/icons/ic_menu_phone.png') }}"/>
  149.             </a>
  150.         {% endif %}
  151.         {% if app.request.attributes.get('_route') != 'app_shop_customer_info' %}
  152.             <div class="app-nav-btn dropdown show">
  153.                 <a href="#" id="activeLocale"  role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  154.                     <img class="app-nav-btn-img" src="{{ asset('assets/shop/images/flags/' ~ locales.activeLocale|slice(0,2) ~'-64.png') }}"/>
  155.                     <span class="app-nav-btn-label" style="font-size: 0.8em;">{{locales.activeLocale|slice(0,2)|upper}}</span>
  156.                     <img src="{{ asset('assets/shop/images/icons/caret-down.png') }}" class="app-nav-btn-caret"/>
  157.                 </a>
  158.                 <div class="p-2 dropdown-menu" id="allLocalesDiv" aria-labelledby="activeLocale">
  159.                     {% for code in locales.allLocales %}
  160.                         {% if code is not same as(locales.activeLocale) %}
  161.                             <a class="dropdown-item mb-2" href="{{ path('sylius_shop_switch_locale', {'code': code, '_locale' : 'ro'}) }}">
  162.                                 <img class="app-nav-btn-img" src="{{ asset('assets/shop/images/flags/'~  code|slice(0,2) ~'-64.png') }}"/>
  163.                                 <strong class="app-nav-btn-label">{{ code|slice(0,2)|upper }}</strong>
  164.                             </a>
  165.                         {% endif %}
  166.                     {% endfor %}
  167.                 </div>
  168.             </div>
  169.             {% set cartProducts = cart_manager.cartProducts(app.session) %}
  170.             {% set cartNumberOfProducts = cart_manager.numberOfProducts(cartProducts) %}
  171.             <div class="nav-item app-nav-btn">
  172.                 <a class="nav-link" href="{{ cartNumberOfProducts > 0 ? path('app_shop_customer_info') : '#' }}" id="navbarCartDropdown" role="button">
  173.                     <img class="app-nav-btn-img" src="{{ asset('assets/shop/images/icons/ic_top-menu_cart.png') }}">
  174.                     <label class="app-nav-btn-label">
  175.                         {{'app.ui.shopping'|trans}}
  176.                         {% if cartNumberOfProducts > 0 %}
  177.                             <span class="text-primary">
  178.                                 (<span id="cartNumberOfProducts">{{ cartNumberOfProducts }}</span>)
  179.                             </span>
  180.                         {% endif %}
  181.                     </label>
  182.                 </a>
  183.             </div>
  184.         {% endif %}
  185.         <div class="nav-item dropdown app-nav-btn show">
  186.             <a class="nav-link dropdown-toggle"
  187.                href="{% if app.user is defined and app.user is not null and app.user.customer is defined and app.user.customer is not null %}#{% else %}{{ path('sylius_shop_login') }}{% endif %}"
  188.                id="navbarAccountDropdown" role="button"
  189.                {% if app.user is defined and app.user is not null and app.user.customer is defined and app.user.customer is not null %}data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"{% endif %}
  190.             >
  191.                 <img class="app-nav-btn-img" src="{{ asset('assets/shop/images/icons/ic_top-menu_profile.png') }}">
  192.                 {% if app.user is defined and app.user is not null and app.user.customer is defined and app.user.customer is not null %}
  193.                     <label class="app-nav-btn-label">Salut, {{ app.user.customer.fullName }}!</label>
  194.                 {% else %}
  195.                     <label class="app-nav-btn-label">{{'app.ui.my_account'|trans}}</label>
  196.                 {% endif %}
  197.             </a>
  198.             <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarAccountDropdown">
  199.                 {% if app.user is defined and app.user is not null and app.user.customer is defined and app.user.customer is not null %}
  200.                     <strong class="dropdown-item font-weight-bold">Salut, {{ app.user.customer.fullName }}!</strong>
  201.                     <a class="dropdown-item" href="{{ path('sylius_shop_account_dashboard') }}">{{'app.ui.my_account'|trans}}</a>
  202.                     <a class="dropdown-item" href="{{ path('app_shop_account_show_vehicles') }}">{{ 'app.ui.my_cars'|trans }}</a>
  203.                     <a class="dropdown-item" href="{{ path('app_view_alerts') }}">{{ 'app.ui.notifications'|trans}}</a>
  204.                     <a class="dropdown-item" href="{{ path('app_shop_vignette_order_history') }}">{{ 'app.ui.my_orders'|trans }}</a>
  205.                     <a class="dropdown-item" href="{{ path('sylius_shop_logout') }}">{{ 'sylius.ui.sign_out'|trans }}</a>
  206.                 {% else %}
  207.                     <a class="dropdown-item" href="{{ path('sylius_shop_login') }}">{{ 'app.ui.sign_in'|trans }}</a>
  208.                 {% endif %}
  209.             </div>
  210.         </div>
  211.     </div>
  212. </nav>
  213. <style>
  214.     #inputSearch:focus {
  215.         box-shadow: none;
  216.     }
  217.     .form-rounded {
  218.         border-radius: 1rem;
  219.     }
  220.     .btn-rounded {
  221.         border-top-left-radius: 1rem;
  222.         border-bottom-left-radius: 1rem;
  223.         border: 1px solid #DEE2E6;
  224.     }
  225.     a:hover
  226.     {
  227.         color: #FF5100;
  228.     }
  229.     .popover-body {
  230.         background: white !important;
  231.     }
  232. </style>
  233. <script>
  234.     $(document).ready(function(){
  235.         $('#phoneIconCallCenter').popover({html:true});
  236.     });
  237.     $('#productsMenuList').on('show.bs.dropdown', function () {
  238.         $("#menuIcon").attr('src', '/assets/shop/images/icons/ic_menu_close.png');
  239.     });
  240.     $('#productsMenuList').on('hide.bs.dropdown', function () {
  241.         $("#menuIcon").attr('src', '/assets/shop/images/icons/ic_menu_produse_black.png');
  242.     });
  243. </script>