<div class="header-top">
    <div class="container">
        <div class="row">
            <div class="col-md-12 col-lg-5">
               <div class="header-top-welcome"><p>Welcome to <b><?php echo $company_name; ?></b> <?php echo $company_name; ?>!</p></div>
            </div>
            <div class="col-md-5 col-lg-3">
               <div class="header-top-select">
                  <div class="header-select">
                     <i class="icofont-money"></i>
                     <select class="select" id="mycurrency">
                        <option value="PKR">PKR</option>
                     </select>
                  </div>
               </div>
            </div>
            <div class="col-md-7 col-lg-4">
               <ul class="header-top-list">
                  <li><a href="<?php echo $AaliLINK; ?>/profile">My Order</a></li>
                  <li><a href="<?php echo $AaliLINK; ?>/profile">Profile</a></li>
                  <li><a href="<?php echo $AaliLINK; ?>/contact">contact us</a></li>
               </ul>
            </div>
        </div>
    </div>
</div>

<header class="header-part">
    <div class="container">
        <div class="header-content">
            <div class="header-media-group">
               <button class="header-user">
                  <img src="<?php echo $AaliLINK; ?>/assets/images/user.gif" style="" alt="user">
               </button>
               <a href="<?php echo $AaliLINK; ?>"><img src="<?php echo $AaliSYS; ?>/uploads/logos/<?php echo $company_logo; ?>" style="margin-left: 25px;width:150px;height:45px;" alt="logo"></a>
               <button class="header-src"><i class="fas fa-search"></i></button>
            </div>
            <a href="<?php echo $AaliLINK; ?>" class="header-logo">
                <img src="<?php echo $AaliSYS; ?>/uploads/logos/<?php echo $company_logo; ?>" alt="logo" style="margin-top: -16px;margin-bottom: -12px;height: 50px;">
            </a>
            <a href="#" class="header-widget" title="My Account">
               <img src="<?php echo $AaliLINK; ?>/assets/images/user.gif" alt="user">
            </a>
            <select class="select loginsel" onchange="location = this.value;"style="margin-left:25px;">
               <option selected>My Account</option>
               <option value="<?php echo $AaliLINK; ?>/login">Login</option>
               <option value="<?php echo $AaliLINK; ?>/regiter">Register</option>
            </select>

            <form class="header-form" action="" method="GET">
               <input type="text" name="txtsearchproduct" id="q" placeholder="Search anything..."><button name="search"><i class="fas fa-search"></i></button>
            </form>

            <div class="header-widget-group">
                <!--<a href="" class="header-widget" title="Wishlist"><i class="fas fa-heart"></i><sup>0</sup></a>-->
                <button class="header-widget header-cart " title="Cartlist" id="cartupdate">    
                    <i class="fas fa-shopping-basket"></i><sup class="chosen">0</sup><span>Total Price<small><?php echo $cur; ?><b class="chosen_price">0</b></small></span>
                </button> 
               </div>
        </div>
    </div>
</header>

<aside class="cart-sidebar">
    <span id="minicart">
        <div class="cart-header">
            <div class="cart-total"><i class="fas fa-shopping-basket"></i><span>Total Item (<b class="chosen">0</b>)</span></div>
            <button class="cart-close"><i class="icofont-close"></i></button>
        </div>
        <div class="cart_msg mt-1"></div>
        <ul class="cart-list view_item_in_cart"></ul>
        <div class="cart-footer">
            <a class="cart-checkout-btn" href="<?php if(isset($_SESSION["user_id"])){echo $AaliLINK."/checkout";}else{echo $AaliLINK."/login";} ?>">
                <span class="checkout-label">Proceed to Checkout</span>
                <span class="checkout-price" style="width: 150px !important;"><?php echo $cur; ?><b class="chosen_price">0</b></span>
            </a>
        </div>
        
        <script>// $(".cart-close").on("click",(function(){$("body").css("overflow","inherit");</script>
    </span>
</aside>

<nav class="navbar-part">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
               <div class="navbar-content">
                  <ul class="navbar-list">

                     <li class="navbar-item dropdown">
                        <a class="navbar-link" href="<?php echo $AaliLINK; ?>/profile">home</a>
                     </li>
                     <?php $catq=mysqli_query($conn,"SELECT * FROM aalierp_catalogue LIMIT 5"); while($row=mysqli_fetch_array($catq)){ ?>
                        <li class="navbar-item dropdown">
                            <a class="navbar-link dropdown-arrow" href="#"><?php echo $row["catalogue_name"]; ?></a>
                            <ul class="dropdown-position-list">
                                <?php $scatq=mysqli_query($conn,"SELECT * FROM aalierp_subcategory WHERE catalogue_id='".$row["catalogue_id"]."'"); while($rec=mysqli_fetch_array($scatq)){ ?>
                                    <li><a href="<?php echo $AaliLINK; ?>/products-by-catalogue/?cid=<?php echo $rec["subcategory_id"]; ?>"><?php echo $rec["subcategory_name"]; ?></a></li>
                                <?php } ?>
                            </ul>
                        </li>
                     <?php } ?>
                     <!--<li class="navbar-item dropdown">
                        <a class="navbar-link dropdown-arrow" href="#">Deity Dresses</a>
                        <ul class="dropdown-position-list">
                           <li>
                                <a href="">Gaur Nitai</a>
                                <a href="" style="padding-left: 42px;"><span style="color: #ED4B62;">-</span> 3/4 Dhoti</a>
                            </li>
                            <li><a href="">Jagnnath Baldev Subhadra Maharani</a></li>
                        </ul>
                     </li>-->
                     <li class="navbar-item dropdown">
                        <a class="navbar-link" href="<?php echo $AaliLINK; ?>/about">About Us</a>
                     </li>
                     <li class="navbar-item dropdown">
                        <a class="navbar-link" href="<?php echo $AaliLINK; ?>/contact">Contact Us</a>
                     </li>

                  </ul>
                  <div class="navbar-info-group">
                     <div class="navbar-info">
                        <i class="icofont-ui-touch-phone"></i>
                        <p><small>call us</small><span><?php echo $company_mobile; ?></span></p>
                     </div>
                     <div class="navbar-info">
                        <i class="icofont-ui-email"></i>
                        <p><small>email us</small><span><?php echo $company_email; ?></span></p>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </nav>
   <aside class="category-sidebar">
      <div class="category-header">
         <h4 class="category-title"><i class="fas fa-align-left"></i><span>Categories</span></h4>
         <button class="category-close"><i class="icofont-close"></i></button>
      </div>
      <ul class="category-list">
         <?php $catq=mysqli_query($conn,"SELECT * FROM aalierp_catalogue"); while($row=mysqli_fetch_array($catq)){ ?>
            <li class="category-item">
                <a class="category-link dropdown-link" href="#">
                    <img src="<?php echo $AaliSYS; ?>/uploads/products/<?php echo $row["catalogue_image"]; ?>" style="width: 37px;border-radius: 5px;"> &nbsp <span>Accessories</span>
                </a>
                <ul class="dropdown-list">
                    <?php $scatq=mysqli_query($conn,"SELECT * FROM aalierp_subcategory WHERE catalogue_id='".$row["catalogue_id"]."'"); while($rec=mysqli_fetch_array($scatq)){ ?>
                        <li><a href="<?php echo $AaliLINK; ?>/products-by-category/?cid=<?php echo $rec["subcategory_id"]; ?>"><?php echo $rec["subcategory_name"]; ?></a></li>
                    <?php } ?>
                </ul>
            </li>
         <?php } ?>
        </ul>
        <div class="category-footer">
            <p>All Rights Reserved by <a href="<?php echo $AaliLINK; ?>"><?php echo $company_name; ?></a></p>
        </div>
    </aside>

    <div class="mobile-menu">
        <a href="<?php echo $AaliLINK; ?>" title="Home Page"><i class="fas fa-home"></i><span>Home</span></a>
        <button title="Category List" class="cate-btn"><i class="fas fa-list"></i><span>category</span></button>
        <a href="<?php echo $AaliLINK; ?>/profile" title="Cartlist" class="cart-btn"><i class="fas fa-shopping-basket"></i><span>cartlist</span> <sup id="footercart chosen"></sup></a> 
        <a href="#" title="Wishlist"><i class="fas fa-heart"></i><span>wishlist</span><sup>0</sup></a>
        <a href="<?php echo $AaliLINK; ?>/profile" title="Compare List"><i class="fas fa-random"></i><span>My Order</span></a>
    </div>