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