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