src/ApplicationBundle/Modules/MarketPlace/Resources/views/inc/market_place_header_v2.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8" />
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.     <meta property="og:title" content="{{ og_title is defined? og_title: page_title }}"/>
  7.     <meta property="og:description"
  8.           content="{{ og_description is defined? og_description: 'RaachSolar is a marketplace where people can buy and sell solar service related products. Powered by HoneyBee IoT' }}"/>
  9.     <meta property="og:image"
  10.           content="{{ og_image is defined? (absolute_url(path('dashboard'))~og_image):(absolute_url(path('dashboard'))~'marketplace_assets/assests/raachLogo.svg') }}"/>
  11.     <title> {{ page_title }} </title>
  12.    <!--swipper and others css links-->
  13.    <link rel="stylesheet" href="{{ absolute_url(path('dashboard')) }}marketplace_assets/css/bootstrap.css?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}">
  14.    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"/>
  15.     <link
  16.       rel="stylesheet"
  17.       href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
  18.       integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
  19.       crossorigin="anonymous"
  20.       referrerpolicy="no-referrer"
  21.     />
  22.     <link rel="stylesheet" href="{{ absolute_url(path('dashboard')) }}marketplace_assets/css/calender.css?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}">
  23.     <link rel="stylesheet" href="{{ absolute_url(path('dashboard')) }}marketplace_assets/css/parallax.css?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}">
  24.     <link rel="stylesheet" href="{{ absolute_url(path('dashboard')) }}marketplace_assets/css/style.css?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}">
  25.   </head>
  26.     <script>
  27.         if (typeof module === 'object') {
  28.             window.module = module;
  29.             module = undefined;
  30.         }
  31.         //    require('./preload');
  32.     </script>
  33.     <script src="https://code.jquery.com/jquery-3.4.1.min.js"
  34.             integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  35.   <body>
  36.     <nav class="navbar navbar-expand-lg nav-background">
  37.       <div class="container-xxl">
  38.         <a class="navbar-brand" href="{{ path('market_place_home_view') }}" >
  39.           <img src="{{ absolute_url(asset('marketplace_assets/assests/raachLogo.svg')) }}" alt="Logo" />
  40.         </a>
  41.         <button
  42.           class="navbar-toggler"
  43.           type="button"
  44.           data-bs-toggle="collapse"
  45.           data-bs-target="#navbarNav"
  46.           aria-controls="navbarNav"
  47.           aria-expanded="false"
  48.           aria-label="Toggle navigation"
  49.         >
  50.           <span class="navbar-toggler-icon"></span>
  51.         </button>
  52.         <div class="collapse navbar-collapse custom-collapse" id="navbarNav">
  53.           <ul class="navbar-nav mx-auto text-center">
  54.             <!-- Always visible nav links -->
  55.             <li class="nav-item">
  56.               <a class="nav-link {% if app.request.get('_route') == 'market_place_product_list' %}active{% endif %}" href="{{ url('market_place_product_list') }}" >Products</a>
  57.             </li>
  58.             <li class="nav-item">
  59.               <a class="nav-link {% if app.request.get('_route') == 'market_place_our_project' %}active{% endif %}" href="{{ url('market_place_our_project') }}" >Projects</a>
  60.             </li>
  61.             <!-- Menu Dropdown: Only visible on large devices -->
  62.             <li class="nav-item dropdown d-none d-lg-block">
  63.               <a
  64.                 class="nav-link dropdown-toggle"
  65.                 href="#"
  66.                 role="button"
  67.                 data-bs-toggle="dropdown"
  68.                 aria-expanded="false"
  69.               >
  70.                 Menu
  71.               </a>
  72.               <ul class="dropdown-menu ">
  73.                 <div class='dropdown-scroll'> 
  74.                   <li>
  75.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_about_us' %}active{% endif %}" href="{{ url('market_place_about_us') }} " >About Us</a>
  76.                   </li>
  77.                   <li><hr class="dropdown-divider" /></li>
  78.                   <li>
  79.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_customer_plant' %}active{% endif %}" href="{{ url('market_place_customer_plant') }}" >Build Custom Plant</a>
  80.                   </li>
  81.                   <li><hr class="dropdown-divider" /></li>
  82.                   <li>
  83.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_checkout_details' %}active{% endif %}" href="{{ url('market_place_checkout_details') }}" > Checkout Details</a>
  84.                   </li>
  85.                   <li><hr class="dropdown-divider" /></li>
  86.                   <li>
  87.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_company_profile' %}active{% endif %}" href="{{ url('market_place_company_profile') }}" >Company Profile</a>
  88.                   </li>
  89.                   <li><hr class="dropdown-divider" /></li>
  90.                   <li>
  91.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_company_profile_edit' %}active{% endif %}" href="{{ url('market_place_company_profile_edit') }}" >Company Profile Edit</a>
  92.                   </li>
  93.                   <li><hr class="dropdown-divider" /></li>
  94.                   <li>
  95.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_compare' %}active{% endif %}" href="{{ url('market_place_compare') }} "  >Compare Product</a>
  96.                   </li>
  97.                   <li><hr class="dropdown-divider" /></li>
  98.                   <li>
  99.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_my_cart' %}active{% endif %}" href="{{ url('market_place_my_cart') }}" >My Cart</a>
  100.                   </li>
  101.                   <li><hr class="dropdown-divider" /></li>
  102.                   <li>
  103.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_profile_view' %}active{% endif %}" href="{{ url('market_place_profile_view') }}" >My Profile Details</a>
  104.                   </li>
  105.                   <li><hr class="dropdown-divider" /></li>
  106.                   <li>
  107.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_order_track' %}active{% endif %}" href="{{ url('market_place_order_track') }}" >Order Track</a>
  108.                   </li>
  109.                   <li><hr class="dropdown-divider" /></li>
  110.                   <li>
  111.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_vendor_add_product' %}active{% endif %}" href="{{ url('market_place_vendor_add_product') }}" >Vendor Add Product</a>
  112.                   </li>
  113.                   <li><hr class="dropdown-divider" /></li>
  114.                   <li>
  115.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_vendor_edit_product' %}active{% endif %}" href="{{ url('market_place_vendor_edit_product') }}" >Vendor Edit Product</a>
  116.                   </li>
  117.                   <li><hr class="dropdown-divider" /></li>
  118.                   <li>
  119.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_vendor_edit_product' %}active{% endif %}" href="{{ url('market_place_vendor_edit_product') }}" >Vendor Profile Details</a>
  120.                   </li>
  121.                   <li><hr class="dropdown-divider" /></li>
  122.                   <li>
  123.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_vendor_login' %}active{% endif %}" href="{{ url('market_place_vendor_login') }}"  >Vendor Login</a>
  124.                   </li>
  125.                   <li><hr class="dropdown-divider" /></li>
  126.                   <li>
  127.                     <a class="dropdown-item {% if app.request.get('_route') == 'market_place_vendor_signup' %}active{% endif %}" href="{{ url('market_place_vendor_signup') }}"  >Vendor Signup</a>
  128.                   </li>
  129.                 </div>
  130.                 
  131.               </ul>
  132.             </li>
  133.             <!-- search-->
  134.             <li class="nav-item d-none d-lg-block">
  135.               <form class="search-box">
  136.                 <div class="input-group input-group-sm mt-1">
  137.                   <span class="input-group-text border-0">
  138.                     <img src="{{ absolute_url(asset('marketplace_assets/assests/header/search.svg')) }}" alt="" />
  139.                   </span>
  140.                   <input
  141.                     type="text"
  142.                     class="form-control border-0 custom-search-input"
  143.                     placeholder="Search"
  144.                     aria-label="Search"
  145.                   />
  146.                 </div>
  147.               </form>
  148.             </li>
  149.             <!--cart -->
  150.             <a href="{{ path('market_place_my_cart') }}" class="cart-button d-none d-lg-block text-decoration-none text-dark">
  151.               <div class="cart-container">
  152.                 <img src="{{ absolute_url(asset('marketplace_assets/assests/header/cart.svg')) }}"  alt="Cart Icon"  class="cart-icon"  />
  153.                 <span class="cart-count"></span>
  154.                 <!-- Dynamic cart count -->
  155.               </div>
  156.               <span class="mx-2">Cart</span>
  157.             </a>
  158.             <!-- Expanded menu: visible only on small & medium devices -->
  159.             <li class="nav-item d-lg-none">
  160.               <a class="nav-link {% if app.request.get('_route') == 'market_place_about_us' %}active{% endif %}" href="{{ url('market_place_about_us') }} " >About Us</a>
  161.             </li>
  162.             <li class="nav-item d-lg-none">
  163.               <a class="nav-link {% if app.request.get('_route') == 'market_place_customer_plant' %}active{% endif %}" href="{{ url('market_place_customer_plant') }}"  >Build Custom Plant</a>
  164.             </li>
  165.             <li class="nav-item d-lg-none">
  166.               <a class="nav-link {% if app.request.get('_route') == 'market_place_checkout_details' %}active{% endif %}" href="{{ url('market_place_checkout_details') }}"  >Checkout Details</a>
  167.             </li>
  168.             <li class="nav-item d-lg-none">
  169.               <a class="nav-link  {% if app.request.get('_route') == 'market_place_company_profile' %}active{% endif %}" href="{{ url('market_place_company_profile') }}" >Company Profile</a>
  170.             </li>
  171.             <li class="nav-item d-lg-none">
  172.               <a class="nav-link {% if app.request.get('_route') == 'market_place_company_profile_edit' %}active{% endif %}" href="{{ url('market_place_company_profile_edit') }}" >Company Profile Edit</a>
  173.             </li>
  174.             <li class="nav-item d-lg-none">
  175.               <a class="nav-link {% if app.request.get('_route') == 'market_place_compare' %}active{% endif %}" href="{{ url('market_place_compare') }}" >Compare Product</a>
  176.             </li>
  177.             <li class="nav-item d-lg-none">
  178.               <a class="nav-link {% if app.request.get('_route') == 'market_place_my_cart' %}active{% endif %}" href="{{ url('market_place_my_cart') }}"  >My Cart</a>
  179.             </li>
  180.             <li class="nav-item d-lg-none">
  181.               <a class="nav-link {% if app.request.get('_route') == 'market_place_profile_view' %}active{% endif %}" href="{{ url('market_place_profile_view') }}" >My Profile Details</a>
  182.             </li>
  183.             <li class="nav-item d-lg-none">
  184.               <a class="nav-link {% if app.request.get('_route') == 'market_place_order_track' %}active{% endif %}" href="{{ url('market_place_order_track') }}"  >Order Track</a>
  185.             </li>
  186.             <li class="nav-item d-lg-none">
  187.               <a class="nav-link {% if app.request.get('_route') == 'market_place_vendor_add_product' %}active{% endif %}" href="{{ url('market_place_vendor_add_product') }}" >Vendor Add Product</a>
  188.             </li>
  189.             <li class="nav-item d-lg-none">
  190.               <a class="nav-link {% if app.request.get('_route') == 'market_place_vendor_edit_product' %}active{% endif %}" href="{{ url('market_place_vendor_edit_product') }}"  >Vendor Edit Product</a>
  191.             </li>
  192.             <li class="nav-item d-lg-none">
  193.               <a class="nav-link {% if app.request.get('_route') == 'market_place_vendor_profile_details' %}active{% endif %}" href="{{ url('market_place_vendor_profile_details') }}" >Vendor Profile Details</a>
  194.             </li>
  195.             <li class="nav-item d-lg-none">
  196.               <a class="nav-link {% if app.request.get('_route') == 'market_place_vendor_login' %}active{% endif %}" href="{{ url('market_place_vendor_login') }}" >Vendor Login</a>
  197.             </li>
  198.             <li class="nav-item d-lg-none">
  199.               <a class="nav-link {% if app.request.get('_route') == 'market_place_vendor_signup' %}active{% endif %}" href="{{ url('market_place_vendor_signup') }}"  >Vendor Signup</a>
  200.             </li>
  201.             <!-- search box -->
  202.             <li class="nav-item d-lg-none d-flex justify-content-center">
  203.               <form class="search-box">
  204.                 <div class="input-group input-group-sm mt-1">
  205.                   <span class="input-group-text border-0">
  206.                     <img src="{{ absolute_url(asset('marketplace_assets/assests/header/search.svg')) }}" alt="" />
  207.                   </span>
  208.                   <input
  209.                     type="text"
  210.                     class="form-control border-0 custom-search-input"
  211.                     placeholder="Search"
  212.                     aria-label="Search"
  213.                   />
  214.                 </div>
  215.               </form>
  216.             </li>
  217.             <!--cart -->
  218.             <a href="{{ path('market_place_my_cart') }}"  class="cart-button d-flex justify-content-center d-lg-none text-decoration-none text-dark">
  219.               <div class="cart-container">
  220.                 <img  src="{{ absolute_url(asset('marketplace_assets/assests/header/cart.svg')) }}"
  221.                   
  222.                   alt="Cart Icon"
  223.                   class="cart-icon"
  224.                 />
  225.                 <span class="cart-count">3</span>
  226.                 <!-- Dynamic cart count -->
  227.               </div>
  228.               <span class="mx-2"> Cart </span>
  229.             </a>
  230.           </ul>
  231.           
  232.           <div class="nav-btn-area text-lg-end d-flex  align-items-center justify-content-center">
  233.             <a href="{{ path('market_place_login_view') }}" class="login-btn btn ms-2 d-flex align-items-center justify-content-center mx-2">Login</a>
  234.             <a href="{{ path('market_place_signup_view') }}" class="create-account-btn btn d-flex align-items-center justify-content-center">Sign Up</a>
  235.           </div>
  236.         </div>
  237.       </div>
  238.     </nav>
  239.   </body>
  240. </html>
  241. <script>
  242.   $(document).ready(function(){
  243.     let totalQty = parseInt(localStorage.getItem('cart_no') || '0');
  244.     const $badge = $('.cart-count');
  245.     if ($badge.length) {
  246.       $badge.text(totalQty);
  247.       $badge.css('display', totalQty > 0 ? 'inline-block' : 'none');
  248.     }
  249.   })
  250. </script>