
<!-- iphone no detect phone -->
<meta name="format-detection" content="telephone=no">
<!-- end iphone no detect phone -->

<!-- facebook iframe sdk -->
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/zh_HK/sdk.js#xfbml=1&version=v11.0" nonce="kcZU7mKJ"></script>

<!-- end facebook iframe sdk -->

<?php
$currency_new_id = $this->session->userdata('currency_new_id');
$target_con_rate = $position1 = $currency1 = 0;

if (empty($currency_new_id)) {
	$result = $cur_info = $this->db->select('*')
		->from('currency_info')
		->where('default_status', '1')
		->get()
		->row();
	$currency_new_id = $result->currency_id;
}

if (!empty($currency_new_id)) {
	$cur_info = $this->db->select('*')
		->from('currency_info')
		->where('currency_id', $currency_new_id)
		->get()
		->row();

	$target_con_rate = $cur_info->convertion_rate;
	$position1 = $cur_info->currency_position;
	$currency1 = $cur_info->currency_icon;
}

?>

<!-- top bar testing -->
<div class="row px-0 topbgorange mx-0">
<div class="container ">
    <!-- <div class="row">
        <div class="col-12">
            <p>header</p>
        </div>
    </div> -->
    <div class="d-flex flex-row align-items-end">
        <div class="flex-fill" style="position:relative;height:100px;">
            <!-- <p>col1</p> -->
            <!-- <img class="" style="" src="<?php echo base_url() . "/my-assets/image/logo/logo.png"; ?>"> -->
            <img class="" style="position: absolute;bottom:0px;max-width: 83px; width: 18vw;" src="<?php echo base_url() . $Web_settings[0]['logo']; ?>">
            <!-- <img class="d-none d-md-block" width="142" src="<?php if (isset($Web_settings[0]['logo'])) {
	echo base_url() . $Web_settings[0]['logo'];
}?>" alt="Cartzilla" />

<img class="d-block d-md-none" width="100" src="<?php if (isset($Web_settings[0]['logo'])) {
	echo base_url() . $Web_settings[0]['logo'];
}?>" alt="" /> -->
            <!-- <a class="navbar-brand d-none d-sm-block mr-3 flex-shrink-0" href="<?php echo base_url() ?>">
                <img width="142" src="<?php if (isset($Web_settings[0]['logo'])) {
	echo base_url() . $Web_settings[0]['logo'];
}?>" alt="Cartzilla" />
            </a>
            <a class="navbar-brand d-sm-none mr-2" href="<?php echo base_url() ?>">
                <img width="100" src="<?php if (isset($Web_settings[0]['logo'])) {
	echo base_url() . $Web_settings[0]['logo'];
}?>" alt="" /> -->
        </div>
        <div class="flex-fill text-right pb-0">
            <!-- <p>col2</p> -->
            <!-- right side button -->

            <!-- search icon -->
             <!-- <a href="#" class="btn btn-theme-transparent" data-toggle="tooltip" data-original-title="0" data-placement="right"> -->

            <!-- new search button -->
              <!-- <style>
                .searchdiv{

                }
                .searchform {
    position: relative;
   /* top: 50%;
    left: 50%;*/
    transform: translate(-100%);
    transition: all 1s;
    width: 50px;
    height: 50px;
    background: white;
    box-sizing: border-box;
    border-radius: 25px;
    border: 4px solid white;
    padding: 5px;
}

.searchinput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;;
    height: 42.5px;
    line-height: 30px;
    outline: 0;
    border: 0;
    display: none;
    font-size: 1em;
    border-radius: 20px;
    padding: 0 20px;
}

.searchicon {
    box-sizing: border-box;
    padding: 10px;
    width: 42.5px;
    height: 42.5px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    color: #07051a;
    text-align: center;
    font-size: 1.2em;
    transition: all 1s;
}

.searchform:hover{
    width: 200px;
    cursor: pointer;
}

.searchform:hover input{
    display: block;
}

.searchform:hover .fa{
    background: #07051a;
    color: white;
}
              </style>
            <form action="" class="searchform">
  <input type="search" class="searchinput" placeholder="Search">
  <i class="fa fa-search searchicon"></i>
</form> -->
          <!--   <style>
                .searchBox {
   /* position: absolute;
    top: 50%;
    left: 50%;*/
    /*transform:  translate(-50%,50%);*/
    /*background: #2f3640;*/
    height: 40px;
    border-radius: 40px;
    /*padding: 10px;*/

}

.searchBox:hover > .searchInput {
    width: 240px;
    padding: 0 6px;
}

.searchBox:hover > .searchButton {
  background: #fbb8d8;
  color : #2f3640;
}

.searchButton {
    color: white;
    /*float: right;*/
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /*background: #2f3640;*/
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

.searchInput {
    border:none;
    background: #fbb8d8;
    outline:none;
    float:left;
    padding: 0;
    color: black;
    font-size: 16px;
    transition: 0.4s;
    line-height: 20px;
    width: 0px;

}

@media screen and (max-width: 620px) {
.searchBox:hover > .searchInput {
    width: 150px;
    /*padding: 0 6px;*/
}
}
            </style>

          <div class="searchBox mr-1 mr-md-3 d-none d-md-inline-block">

            <input class="searchInput"type="text" name="" placeholder="Search">
            <button class="searchButton" href="#">
              <i class="material-icons"> -->
                <!-- <i class="fa fa-search mb-2">

                </i>
            </button>
        </div>  -->

            <!-- end new search button -->

            <!-- new search box -->
            <div class="col-8 d-none d-md-block ml-auto">
            <?php echo form_open('category_product_search', array('method' => 'GET')) ?>
                <div>
                    <div class="input-group-prepend-overlay">
                        <!-- <span class="input-group-text"><i data-feather="search"></i></span> -->
                    </div>
                    <input class="form-control search-input prepended-form-control appended-form-control"  name="product_name" id="search_product_item" type="text" placeholder="<?php echo display('search'); ?>" />
                    <div class="input-group-append-overlay">
                        <button type="submit" class="btn  search_btn  text-white" style="background-color: #2baca6; padding-left: 0.5rem;padding-right: 0.5rem;"><!-- <span class="lnr
                        lnr-magnifier"></span> --><i data-feather="search"></i>
                        </button>
                    </div>
                </div>
                 <?php echo form_close() ?>
            </div>
            <!-- end new search box -->

            <!-- <div class="mb-1 mb-md-3"> -->
<!--             <?php
if ($this->session->userdata('language') == "english") {
	?>
       <a href="<?php echo base_url("home/changechineselang"); ?>" class="d-inline tool-icon-box  mr-2 mr-md-3">中</a>
            <a href="<?php echo base_url("home/changindonesianlang"); ?>"  class="d-inline tool-icon-box  mr-2 mr-md-3">In</a>
            <?php
}
?>

  <?php
if ($this->session->userdata('language') == "chinese") {
	?>
  <a href="<?php echo base_url("home/changeenglishlang"); ?>" class="tool-icon-box  mr-2 mr-md-3">En</a>
            <a href="<?php echo base_url("home/changindonesianlang"); ?>"  class="d-inline tool-icon-box  mr-2 mr-md-3">In</a>
<?php
}

?>

  <?php
if ($this->session->userdata('language') == "indonesian") {
	?>

<a href="<?php echo base_url("home/changeenglishlang"); ?>" class="tool-icon-box  mr-2 mr-md-3">En</a>
       <a href="<?php echo base_url("home/changechineselang"); ?>" class="d-inline tool-icon-box  mr-2 mr-md-3">中</a>

<?php
}

?> -->
            <!-- <a href="<?php echo base_url("home/changeenglishlang"); ?>" class="tool-icon-box  mr-2 mr-md-3">En</a>
            <a href="<?php echo base_url("home/changechineselang"); ?>" class="d-inline tool-icon-box  mr-2 mr-md-3">中</a>
            <a href="<?php echo base_url("home/changindonesianlang"); ?>"  class="d-inline tool-icon-box  mr-2 mr-md-3">In</a> -->
          <!-- </div> -->

            <!-- added left menu bar -->
                <div class="d-none d-md-inline-block my-1" >
<nav class="navbar navbar-expand-lg secondnav ">
    <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav ml-auto">
    <li class="nav-item  mr-4 ">
        <a class="nav-link  py-0 <?php if ($category_id == 'category_all') {echo 'active';}?>" href="<?php echo base_url('category_all'); ?>"><!-- 首頁 --><?php echo display('home'); ?></a>
      </li>
      <li class="nav-item dropdown mr-4">
        <a class="nav-link dropdown-toggle <?php if ($category_id == 'category_general') {echo 'active';}?> py-0" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><!-- 全部商品 --><?php echo display('all_products'); ?></a>
        <!-- dropdown menu 2 -->
         <ul class="dropdown-menu">

         <style>
          .navbar-nav .dropdown-menu .dropdown-menu {
            margin-top: 0px;
    margin-right: 1rem;
    margin-bottom: 0px;
    margin-left: 0.1rem;
          }
          .dropdown-item:hover, .dropdown-item:focus{
            color:#e98b50;
          }
         </style>





         <?php

foreach ($all_main_category as $all_main_cate_row) {
	?>
        <!-- added category -->
         <!-- <li><a class="dropdown-item dropdown-toggle"  -->
        <li><a class="dropdown-item " href="<?php echo base_url('/category/p/' . remove_space($all_main_cate_row->category_name) . '/' . $all_main_cate_row->category_id); ?>"><?php

	if ($this->session->userdata('language') == "english") {
		echo html_escape($all_main_cate_row->category_name);
	}
	if ($this->session->userdata('language') == "chinese") {
		echo html_escape($all_main_cate_row->category_name_ch);
	}
	if ($this->session->userdata('language') == "indonesian") {
		echo html_escape($all_main_cate_row->category_name_indonesian);
	}
	// echo $all_main_cate_row->category_name;
	?></a>
                        <ul class="dropdown-menu">
                               <?php foreach ($all_sub_category as $all_sub_category_row) {
		if ($all_main_cate_row->category_id == $all_sub_category_row->parent_category_id) {
			?>
                            <li><a class="dropdown-item" href="<?php echo base_url('/category/p/' . remove_space($all_main_cate_row->category_name) . '/' . $all_main_cate_row->category_id); ?>"><?php
if ($this->session->userdata('language') == "english") {
				echo html_escape($all_sub_category_row->category_name);
			}
			if ($this->session->userdata('language') == "chinese") {
				echo html_escape($all_sub_category_row->category_name_ch);
			}
			if ($this->session->userdata('language') == "indonesian") {
				echo html_escape($all_sub_category_row->category_name_indonesian);
			}
			// echo $all_sub_category_row->category_name;

			?></a></li>
                            <?php
} //if( $all_main_cate_row->category_id == $all_sub_category_row->parent_category_id){
	} //foreach ($all_sub_category as $all_sub_category_row) {

	?>
                        </ul>
          </li>
        <!-- end added category -->

                <?php
} //foreach ($all_main_category as $all_main_cate_row) {
?>
        </ul>
        <!-- dropdown menu 2 -->


        <!-- dropdown menu -->
       <!--  <ul class="dropdown-menu">
                    <li><a class="dropdown-item" href="#">Link</a></li>
                    <li><a class="dropdown-item" href="#">Link</a></li>
                    <li><a class="dropdown-item dropdown-toggle" href="#">Submenu</a>
                        <ul class="dropdown-menu">
                            <li><a class="dropdown-item" href="#">Submenu link</a></li>
                            <li><a class="dropdown-item" href="#">Submenu link 2</a></li>
                            <li><a class="dropdown-item dropdown-toggle" href="#">Subsubmenu</a>
                                <ul class="dropdown-menu">
                                    <li><a class="dropdown-item" href="#">Subsubmenu 1</a></li>
                                    <li><a class="dropdown-item" href="#">Subsubmenu 2</a></li>
                                </ul>
                            </li>
                            <li><a class="dropdown-item dropdown-toggle" href="#">Subsubmenu 2</a>
                                <ul class="dropdown-menu">
                                    <li><a class="dropdown-item" href="#">Subsubmenu 2.1</a></li>
                                    <li><a class="dropdown-item" href="#">Subsubmenu 2.2</a></li>
                                </ul>
                            </li>
                        </ul>
                    </li>
          </ul> -->
        <!-- end dropdown menu -->


<!--         <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
          <a class="dropdown-item" href="#">Action1</a>
          <a class="dropdown-item" href="#">Another action</a>
          <a class="dropdown-item" href="#">Something else here</a> -->
          <!-- added dropdown menu -->



          <!-- end added dropdown menu -->
        <!-- </div> -->
      </li>
      <?php if ($this->session->userdata('customer_name')) {
	?>
      <li class="nav-item  mr-4">
        <a class="nav-link  py-0 <?php if ($category_id == 'J6CKE58L8XEWKDL') {echo 'active';}?>" href="<?php echo base_url('customer/fun_shop'); ?>"><!-- 本週熱買 --><?php echo display('member_shopping'); ?> </a>
      </li>
  <?php }?>
   <li class="nav-item  mr-4">
        <a class="nav-link  py-0 <?php if ($category_id == 'limitedtime') {echo 'active';}?>" href="<?php echo base_url('category_limitedtime'); ?>"><!-- 本週熱買 --><?php echo display('limitedtime'); ?></a>
      </li>

<!--       <li class="nav-item  mr-4">
        <a class="nav-link  py-0" href="<?php echo base_url('category_week_sale'); ?>"> -->
            <!-- 本週熱買 --><?php //echo display('hot_sale'); ?>
      <!--   </a>
      </li> -->
  <!--     <li class="nav-item  mr-4">
        <a class="nav-link  py-0" href="<?php echo base_url('category_best_sale'); ?>"> -->
            <!-- 人氣商品 --><?php //echo display('popular_products'); ?>

          <!--   </a>
      </li> -->
      <li class="nav-item  mr-4">
        <a class="nav-link  py-0 <?php if ($category_id == 'about_us') {echo 'active';}?>" href="<?php echo base_url('/about_us'); ?>"><?php echo display('about_us'); ?></a>
      </li>
      <li class="nav-item  ">
        <a class="nav-link  py-0 <?php if ($category_id == 'contact_us') {echo 'active';}?>" href="<?php echo base_url('contact_us'); ?>"><!-- 聯絡我們 --><?php echo display('contact_us'); ?></a>
      </li>
    </ul>
  </div>
</nav>
</div>
            <!-- end added left menu bar -->


            <a href="<?php echo base_url("category_product_search"); ?>" class="tool-icon-box mr-2 mr-md-3 d-inline-block d-md-none" data-toggle="tooltip" data-original-title="0" data-placement="right">
                    <i class="fa fa-search mb-2"></i>
            </a>
            <!-- end search icon -->

            <!-- human icon -->
            <!-- <a href="<?php echo base_url(); ?>home/login_set/login" class="tool-icon-box  mr-3 mr-md-3" data-toggle="tooltip" data-original-title="0" data-placement="right">
                    <i class="far fa-user"></i> -->
                    <!-- <i class="feather feather-user"></i> -->
            <!-- </a> -->





            <!-- end human icon -->

            <!-- wish list -->
            <span id="top_wishlist_area">
            <a href="<?php echo base_url('customer/wish_list'); ?>" class="tool-icon-box  mr-2 mr-md-3" id="compare_tooltip" data-toggle="tooltip" data-original-title="0" data-placement="right">
            <i class="far fa-heart"></i>

 <!-- wish number -->


<?php

// duplicate below function
$total_wishlist = 0;
if ($this->session->userdata('customer_name')) {
	$customer_id = $this->session->userdata('customer_id');
	$this->db->select('a.*,b.*');
	$this->db->from('wishlist a');
	$this->db->join('product_information b', 'a.product_id=b.product_id');
	$this->db->where('a.user_id', $customer_id);
	$this->db->where('a.status', 1);
	$query = $this->db->get();
	$wishlists = $query->result();
	$total_wishlist = count($wishlists);
}
//end duplicate below function
?>
<!-- end wish number -->

            <span id="wished_num"><?php echo $total_wishlist; ?></span>
            </a>
          </span>
            <!-- end wish list -->

            <!-- shopping cart -->
            <span id="top_shoppingcart_area">
            <a href="#" class="tool-icon-box  mr-1 mr-md-3" data-toggle="modal" data-target="#popup-cart" onclick="opencartNav()">
                        <i class="fa fa-shopping-cart"></i> <span class="cart_num"><?php echo $this->cart->total_items() ?></span>
            </a>
          </span>
            <!-- end shopping cart -->




            <!-- checkout button -->
            <?php if ($this->session->userdata('customer_name')) {?>
            <a class="check-out-button mr-1 mr-md-3 mb-2" style="" href="<?php echo base_url('checkoutnewstyle2'); ?>" role="button"><p class="d-inline text-white"><?php echo display('checkout'); ?></p></a>
          <?php }?>
            <!-- end checkout button -->

            <!-- modified human icon -->
             <?php
if ($this->session->userdata('customer_name')) {?>
            <!-- <div class="topbar-text dropdown disable-autohide ml-3">
                <a class="topbar-link dropdown-toggle" href="#" data-toggle="dropdown" aria-expanded="false">
                    <i data-feather="user" class="mr-2"></i> <?php echo ucwords($this->session->userdata('customer_name')) ?> </a>
                <ul class="dropdown-menu dropdown-menu-right" style="">
                    <li class="dropdown-item">
                        <a href="<?php echo base_url('customer/customer_dashboard') ?>"><?php echo display('dashboard') ?></a>
                    </li>
                    <li class="dropdown-item">
                        <a href="<?php echo base_url('logout') ?>"><?php echo display('logout') ?></a>
                    </li>
                </ul>
            </div> -->
            <!-- logged in -->
            <!-- <a href="<?php echo base_url("customer/customer_dashboard"); ?>" class="tool-icon-box  mr-3 mr-md-3" data-toggle="tooltip" data-original-title="0" data-placement="right"> -->
            <a href="<?php echo base_url("customer/customer_dashboardnewstyle"); ?>" class="tool-icon-box  mr-3 mr-md-3" data-toggle="tooltip" data-original-title="0" data-placement="right">
                    <i class="far fa-user mr-1"></i><span class="d-none d-md-inline-block"><?php echo ucwords($this->session->userdata('customer_name')) ?></span>
                    <!-- <i class="feather feather-user"></i> -->
                </a>
            <!-- end logged in -->

            <?php } else {?>
                <!-- not login user -->
                <!-- <a class="topbar-link d-flex align-items-center" href="#" data-toggle="modal" data-target="#loginModal">
                <i data-feather="user" class="mr-2"></i><?php echo display('signin') ?></a> -->

                 <a href="<?php echo base_url("login"); ?>" class="tool-icon-box  mr-0 mr-md-3" data-toggle="tooltip" data-original-title="0" data-placement="right">
                    <!-- <i class="far fa-user"></i> -->
                    [ <?php echo display('member_login'); ?> ]
                    <!-- <i class="feather feather-user"></i> -->
                </a>

                <!-- end not login user -->
            <?php }?>

            <!-- end modified human icon -->

             <!-- nav icon -->
            <span class="d-inline-block d-md-none px-2" style="font-size:20px;cursor:pointer;color: #ffffff;" onclick="openNav()">&#9776;</span>
            <!-- end nav icon -->

            <!-- end right side button -->

        </div>
    </div>
</div>
</div>
<!-- end top bar testing -->


<!-- mobile menu -->
<!-- <div id="mySidenav" class="sidenav"> -->
<div id="mySidenav" class="sidenavMobile" style="z-index: 101;">
  <?php //var_dump($category_list);?>
  <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
  <!-- search row -->



  <!-- end search row -->
  <!-- accordion menu -->
      <!-- css style -->
      <style>

/*slide menu*/

.sidenavMobile {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  /*background-color: #111;*/
  background-color: #f2f2f2;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenavMobile a {
  padding: 8px 8px 8px 10px;
  text-decoration: none;
  /*font-size: 25px;*/
  font-size: 15px;
  color: #818181;
  display: block;
  transition: 0.3s;
  width:60%;
}

.sidenavMobile a:hover {
  color: #f1f1f1;
}

.sidenavMobile .closebtn {
  position: absolute;
  top: 0;
  /*right: 25px;*/
  font-size: 36px;
  margin-left: 50px;
  left: 130px;
}

@media screen and (max-height: 450px) {
  .sidenavMobile {padding-top: 15px;}
  .sidenavMobile a {font-size: 18px;}
}
/*end slide menu*/

/*custom second nav bar color*/
.secondnav .navbar-nav .nav-link.active{
    color: #f159a2;
}
.secondnav .navbar-nav .nav-link{
    color:#4d4d4d;
}
.secondnav .navbar-nav .nav-link:hover{
    color:#f159a2;
}

/*end custom second nav bar color*/


                ul {

}

/*a {
    color: #b63b4d;
    text-decoration: none
}*/

.accordionMenu {
    width: 100%;
    /*max-width: 384px;*/
    /*margin: 30px auto 20px;*/
    list-style-type: none;
    background: #FFF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 0px;


    /*added ul padding*/

    padding-inline-start: 0px;
}

.accordionMenu .link {
    cursor: pointer;
    display: block;
    /*padding: 15px 15px 15px 42px;*/
    padding: 5px 5px 5px 20px;
    color: #4D4D4D;
    /*font-size: 14px;*/
    font-size: 1.25rem;
    /*font-weight: 700;*/
    border-bottom: 1px solid #CCC;
    position: relative;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease
}

/*.accordion li:last-child .link {
    border-bottom: 0
}*/
.accordionMenu li:first-child .link {
    border-top: 1px solid #CCC;
}

.accordionMenu li i {
    position: absolute;
    top: 16px;
    left: 12px;
    font-size: 18px;
    color: #595959;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease
}

.accordionMenu li i.fa-chevron-down {
    /*right: 12px;*/
    right: 40px;
    left: auto;
    font-size: 16px
}

.accordionMenu li.open .link {
    color: #e98b50
    /*color: #AA00FF*/
}

.accordionMenu li.open i {
    /*color: #AA00FF*/
    color: #e98b50
}

.accordionMenu li.open i.fa-chevron-down {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg)
}

.accordionsubmenu {
    display: none;
/*    background: #444359;
    font-size: 14px;*/
    font-size: 1.25rem;
    padding-inline-start: 0px;
}

.accordionsubmenu li {
    border-bottom: 1px solid #d2d2d2
}

.accordionsubmenu a {
    display: block;
    text-decoration: none;
    color: #4d4d4d;
    width: 100%;
    /*padding: 12px;*/
    padding: 5px 5px 5px 5px;

    /*padding-left: 50px;*/
    padding-left: 50px;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease
}

.accordionsubmenu a:hover {
    /*background: #b63b4d;*/
    /*color: #FFF*/
    color: #e98b50
}

.hreflink {
    color:#4d4d4d;
}
.hreflink:hover {
    color:#e98b50;
}
            </style>
      <!-- end css style -->
      <!-- javascript -->
       <script type="text/javascript">

//                 $( document ).ready(function() {

//     $('a.linkhref').click(function(){
//     alert("test");
//     event.preventDefault();
// });


// });





                $(function() {
var AccordionMenu = function(el, multiple) {
this.el = el || {};
this.multiple = multiple || false;

var links = this.el.find('.link');
// var links = this.el.find('.link').parentElement;

links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
}

AccordionMenu.prototype.dropdown = function(e) {

    // if(if($(this).attr('href') == "#" || $(this).attr('href') == ""))

        // alert( $(this).attr('href'));
    // alert(e.data.el);
var $el = e.data.el;
$this = $(this),
$next = $this.next();
// $next = $this.parent().next();

$next.slideToggle();
// $next.slideToggle();
$this.parent().toggleClass('open');

// $this.parent().parent().toggleClass('open');
// if (!e.data.multiple) {
// $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
// };
}

var accordionmenu = new AccordionMenu($('#accordionMenu'), false);
});

//added link to prevent toggle class
// $('.menuLink').click(function (e) {
//     alert("clicled");
//     e.stopPropagation();
// });
//end
// $('.link').on('hide.bs.dropdown', function(e) {
//   e.preventDefault();
//   e.stopPropagation();
// });

// $(".link a").on('click', function(event) {
//         alert(1);
//         event.preventDefault();
//     });

// $(".testlink").on('click', function(event) {
//         alert(1);
//         event.preventDefault();
//     });


       </script>
      <!-- end javascript -->
      <!-- accordion content -->
        <ul id="accordionMenu" class="accordionMenu">
        <li>

            <div class="link">
                <a href="<?php echo base_url('category_all'); ?>" class="hreflink <?php if ($category_id == 'category_all') {echo 'active';}?>">
                <?php

echo display('home');
// echo $all_main_cate_row->category_name;
 ?>
</a>
</div>
<!--             <ul class="submenu">
                <li><a href="#">Dell Acron</a></li>
                <li><a href="#">HP Envy</a></li>
                <li><a href="#">Macbook Air</a></li>
            </ul> -->
        </li>
         <?php if ($this->session->userdata('customer_name')) {
	?>
        <li>

            <div class="link">
                <a href="<?php echo base_url('customer/fun_shop'); ?>" class="hreflink <?php if ($category_id == 'J6CKE58L8XEWKDL') {echo 'active';}?>">
                <?php

	echo display('member_shopping');
// echo $all_main_cate_row->category_name;
	 ?>
</a>
</div>
<!--             <ul class="submenu">
                <li><a href="#">Dell Acron</a></li>
                <li><a href="#">HP Envy</a></li>
                <li><a href="#">Macbook Air</a></li>
            </ul> -->
        </li>
         <?php }?>
        <li>

            <div class="link">
                <a href="<?php echo base_url('category_limitedtime'); ?>" class="hreflink <?php if ($category_id == 'limitedtime') {echo 'active';}?>">
                <?php

echo display('limitedtime');
// echo $all_main_cate_row->category_name;
 ?>
</a>
</div>
<!--             <ul class="submenu">
                <li><a href="#">Dell Acron</a></li>
                <li><a href="#">HP Envy</a></li>
                <li><a href="#">Macbook Air</a></li>
            </ul> -->
        <!-- </li>
        <li>

            <div class="link">
                <a href="<?php echo base_url() . "category_week_sale"; ?>" class="hreflink"> -->
                <?php

// if ($this->session->userdata('language') == "english") {
// 	echo html_escape("Hot Sale");
// }
// if ($this->session->userdata('language') == "chinese") {

// 	echo html_escape("本週熱買");
// }
// if ($this->session->userdata('language') == "indonesian") {
// 	echo html_escape("");
// }
// // echo $all_main_cate_row->category_name;
?>
<!-- </a>
</div> -->
<!--             <ul class="submenu">
                <li><a href="#">Dell Acron</a></li>
                <li><a href="#">HP Envy</a></li>
                <li><a href="#">Macbook Air</a></li>
            </ul> -->
        <!-- </li> -->
        <!--  <li>
            <div class="link">
                     <a href="<?php echo base_url() . "category_best_sale"; ?>" class="hreflink">
                <?php

if ($this->session->userdata('language') == "english") {
	echo html_escape("Best Sale");
}
if ($this->session->userdata('language') == "chinese") {

	echo html_escape("人氣商品");
}
if ($this->session->userdata('language') == "indonesian") {
	echo html_escape("");
}
// echo $all_main_cate_row->category_name;
?>
                </a>
</div> -->
<!--             <ul class="submenu">
                <li><a href="#">Dell Acron</a></li>
                <li><a href="#">HP Envy</a></li>
                <li><a href="#">Macbook Air</a></li>
            </ul> -->
        <!-- </li> -->

 <?php

foreach ($all_main_category as $all_main_cate_row) {
	?>
         <li>
            <div class="link">
                <!-- <span><div class="menuLink" style="z-index: 20">123</div></span> -->
                <a href="<?php echo base_url('/category/p/' . remove_space($all_main_cate_row->category_name) . '/' . $all_main_cate_row->category_id); ?>" onclick="event.stopPropagation();" class="hreflink"  >
                <?php

	if ($this->session->userdata('language') == "english") {
		echo html_escape($all_main_cate_row->category_name);
	}
	if ($this->session->userdata('language') == "chinese") {
		echo html_escape($all_main_cate_row->category_name_ch);
	}
	if ($this->session->userdata('language') == "indonesian") {
		echo html_escape($all_main_cate_row->category_name_indonesian);
	}
	// echo $all_main_cate_row->category_name;
	?></a>
  <!-- <i class="fa fa-chevron-down "></i> -->

</div>
            <ul class="accordionsubmenu">
               <?php foreach ($all_sub_category as $all_sub_category_row) {
		if ($all_main_cate_row->category_id == $all_sub_category_row->parent_category_id) {
			?>
                    <li><a href="<?php echo base_url('/category/p/' . remove_space($all_sub_category_row->category_name) . '/' . $all_sub_category_row->category_id); ?>"><?php
if ($this->session->userdata('language') == "english") {
				echo html_escape($all_sub_category_row->category_name);
			}
			if ($this->session->userdata('language') == "chinese") {
				echo html_escape($all_sub_category_row->category_name_ch);
			}
			if ($this->session->userdata('language') == "indonesian") {
				echo html_escape($all_sub_category_row->category_name_indonesian);
			}
			// echo $all_sub_category_row->category_name;

			?></a></li>
                <?php
} //if( $all_main_cate_row->category_id == $all_sub_category_row->parent_category_id){
	} //foreach ($all_sub_category as $all_sub_category_row) {

	?>
        </ul>
        </li>
                <?php
} //foreach ($all_main_category as $all_main_cate_row) {
?>
      </ul>
      <!-- end accordion content -->
  <!-- end accordion menu-->


  <!-- bottom footer -->
  <div class="container mt-5 py-3" style="background-color:#808080;">
      <div class="row">
        <div class="col-12 text-center">
            <a class="mx-auto " href="<?php echo base_url('/about_us'); ?>">
              <p class=" text-white"><!-- 關於我們 --><?php echo display('about_us'); ?></p></a>
        </div>
      </div>
      <div class="row">
        <div class="col-12">

              <div class="d-flex justify-content-center">
               <?php if ($Web_settings['0']['facebook_account']) {
	echo '<a href="' . html_escape($Web_settings['0']['facebook_account']) . '" class="p-0">';
}?>
              <img src="http://bigmacmall3.artech-system.com//my-assets/image/logo/facebookdt.png" class="img-fluid px-2">
              <?php if ($Web_settings['0']['facebook_account']) {
	echo '</a >';
}?>
              <?php if ($Web_settings['0']['instagram_account']) {
	echo '<a href="' . html_escape($Web_settings['0']['instagram_account']) . '" class="p-0">';
} else {
	echo '<a href="#" class="p-0">';
}?>
              <img src="http://bigmacmall3.artech-system.com//my-assets/image/logo/instagramdt.png" class="img-fluid px-2">
               <?php if ($Web_settings['0']['instagram_account']) {
	echo '</a >';
} else {
	echo '</a >';
}
?>
 <?php if ($Web_settings['0']['youtube_account']) {
	echo '<a href="' . html_escape($Web_settings['0']['youtube_account']) . '" class="p-0">';
}?>
              <img src="http://bigmacmall3.artech-system.com//my-assets/image/logo/youtubedt.png" class="img-fluid px-2">
              <?php if ($Web_settings['0']['youtube_account']) {
	echo '</a >';
}?>
            </div>
      </div>

      </div>

      <hr class="text-white">
      <div class="row">
        <div class="col-12 text-center">
            <a class="mx-auto " href="<?php echo base_url('contact_us'); ?>">
           <p class="text-white mb-1"><!-- 聯絡我們 --><?php echo display('contact_us'); ?></p>
       </a>
        </div>
      </div>
       <div class="row">
        <div class="col-12  text-left">
           <p class="text-white" style="font-size: 0.8rem"><!-- 電話 --><?php echo display('phone'); ?>/Whatsapp:<a href="https://api.whatsapp.com/send?phone=<?php echo html_escape($Web_settings['0']['whatsapp']); ?>" class="d-inline text-white p-0" style="font-size: 0.8rem"> <?php echo html_escape($Web_settings['0']['whatsapp']); ?></a><!-- +852 6998 2252 --><br><!-- 電郵 --><?php echo display('email'); ?>:<!-- bmchannel1113@yahoo.com --><a href="mailto:<?php echo html_escape($Web_settings['0']['email']); ?>" class="d-inline text-white p-0" style="font-size: 0.8rem"> <?php echo html_escape($Web_settings['0']['email']); ?></a></p>
        </div>
      </div>

  </div>
  <!-- end bottom footer -->

  <!-- <a href="#">About</a>
  <a href="#">Services</a>
  <a href="#">Clients</a>
  <a href="#">Contact</a> -->
</div>

<script>
function openNav() {
  document.getElementById("mySidenav").style.width = "250px";
}

function closeNav() {
  document.getElementById("mySidenav").style.width = "0";
}
</script>
<!-- end mobile menu -->



<!-- shopping cart menu -->
<div  id="mySidecartmenu" class="sidecartnav" style="z-index: 101;">
  <div id="mySidecartcontent" class="container">
  <!-- <span class="toptitle"><?php echo display('cart'); ?></span><a href="javascript:void(0)" class="closebtn" onclick="closecartNav()">&times;</a> -->


    <div class="d-flex justify-content-between mb-3">
      <span class="toptitle mt-auto mb-2"><?php echo display('cart'); ?></span>
      <span><a href="javascript:void(0)" class="closebtn d-inline ml-auto" onclick="closecartNav()">&times;</a></span>
    </div>

  <?php

$cart_total = $this->cart->total() * $target_con_rate;
$cart_total_amt = (($position == 0) ? $currency1 . ' ' . number_format($cart_total, 2, '.', ',') : number_format($cart_total, 2, '.', ',') . ' ' . $currency1);
// echo $cart_total_amt;

//calculate size of cart
$cartcontent = $this->cart->contents();
$numofDiffItem = 0;
if ($cartcontent) {
	$numofDiffItem = sizeof($this->cart->contents());
}

//end calculate size of cart

?>

 <!--  <p class="toptitle2"><?php echo display('cart_items'); ?> : <?php echo $numofDiffItem; ?>  &nbsp;&nbsp; <?php echo display('total'); ?> : <?php echo $cart_total_amt; ?></p> -->
  <div class="d-flex justify-content-between">

      <p class="toptitle2"><?php echo display('cart_items'); ?> : <?php echo $numofDiffItem; ?>  &nbsp;&nbsp;<?php echo display('total'); ?> : <?php echo $cart_total_amt; ?></p>
    </div>

  <!-- load reward total -->
<?php
if ($this->cart->reward_total() != 0) {
	?>
    <div class="d-flex justify-content-between">

      <p class="toptitle2">
        <?php echo display('reward_total'); ?> : <?php echo $this->cart->reward_total(); ?><?php echo display('breviation_of_point'); ?>

      </p>
    </div>
<?php
} //if($this->carty->reward_total!=0){
?>

  <!-- end load reward total -->


  <!-- load cart items -->



   <?php foreach ($cartcontent as $items) {
	?>
      <div class="row">
        <a class="cart-details" href="<?php echo base_url('product/' . remove_space($items['name']) . '/' . $items['product_id']) ?>">
          <div class="col-12">
              <img src="<?php echo base_url() . $items['options']['image'] ?>" class="img-fluid"  />
          </div>
          <!-- details row -->
           <div class="col-12">

                 <?php
if ($this->session->userdata('language') == "english") {
		?>
                <?php echo html_escape($items['name']); ?>
                   <?php
}
	?>
<?php
if ($this->session->userdata('language') == "chinese") {
		?>
                  <?php echo html_escape($items['name']); ?>
 <?php
}
	?>
<?php
if ($this->session->userdata('language') == "indonesian") {
		?>
                   <?php echo html_escape($items['name']); ?>
   <?php
}
	?>

          </div>
          </a>
        </div>
        <!-- test row -->

      <?php if ($items['is_reward_product'] == true) {?>
        <div class="row mb-4">
          <div class="col-12">
            <div class="d-flex justify-content-between">
             <span class="qtyrow"><?php echo $items['qty'] ?> x
              <?php echo $items['reward_point']; ?><?php echo display('breviation_of_point'); ?>
              </span>
              <span class="delete_cart_item" name="<?php echo $items['rowid'] ?>" ><a href="#" class="" onclick="event.preventDefault()"  >X <?php echo display('cart_delete'); ?></a></span>
          </div>
        </div>
      </div>
       <?php } //if($items['is_reward_product']==true){?>
        <!-- end test row -->


      <?php if (empty($items['is_reward_product'])) {?>
          <div class="row mb-4">
            <div class="col-12">
          <div class="d-flex justify-content-between">
             <span class="qtyrow"><?php echo $items['qty'] ?> x <?php echo (($position == 0) ? $currency1 . ' ' . $this->cart->format_number($items['price'] * $target_con_rate) : $this->cart->format_number($items['price'] * $target_con_rate) . ' ' . $currency1) ?></span>

             <span class="delete_cart_item" name="<?php echo $items['rowid'] ?>" ><a href="#" class="" onclick="event.preventDefault()"  >X <?php echo display('cart_delete'); ?></a></span>
          </div>
        </div>
        </div>
      <?php } //if (empty($items['is_reward_product'])) {?>
          <!-- end details row -->


      <!-- </div><div class="row"> -->



   <?php } //foreach ($cartcontent as $items){ ?>


  <!-- end load cart items -->

  <!-- check out button -->
<a class="btn btn-block sidecartcheckout" href="<?php echo base_url('checkoutnewstyle2') ?>"><span class="checkouttext"><?php echo display('checkout') ?></span></a>

  <!-- end check check out button -->

<!--   <a href="#">About</a>
  <a href="#">Services</a>
  <a href="#">Clients</a>
  <a href="#">Contact</a> -->
</div><!-- <div class="container"> -->
</div>
<style>
  /* The side navigation menu */
  .sidecartnav .sidecartcheckout{
      background-color: #ffffff;
      color: #e98b50;
      border-radius: 13px;
      font-size:1rem;
      font-weight: 900;
  }
  .sidecartnav .sidecartcheckout .checkouttext{
    color: #e98b50;
  }
  .sidecartnav .btn.focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(254,242,244,.25);
}
.sidecartnav .cart-details{
    font-size: 1rem;
  color: #4c4e4d;
}
.sidecartnav .cart-details:hover {
  color: #f1f1f1;
}

.sidecartnav .qtyrow{
  font-size: 1rem;
  color: #4c4e4d;
}

.sidecartnav .delete_cart_item > *{
  font-size: 1rem;
  color: #4c4e4d;
}
.sidecartnav .delete_cart_item > *:hover{
  color: #f1f1f1;
}
/*.sidecartnav .ti-close{
  font-size: 1rem;
  color: #4c4e4d;
}

.sidecartnav .ti-close:hover{
  color: #f1f1f1;
}*/



.sidecartnav .toptitle{
  /*padding: 27px 8px 8px 8px;*/
  /*position: absolute;*/
/*  top: 0;
  left: 25px;*/
  font-size: 1rem;
  color: #4c4e4d;
}
.sidecartnav .toptitle2{
  /*padding: 27px 8px 8px 33px;*/
  font-size: 1rem;
  color: #4c4e4d;
}
.sidecartnav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  /*background-color: #ffcdd8; Black*/
  background-color: #59cdc8; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 0px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidecartnav */
}

/* The navigation menu links */
.sidecartnav a {
/*  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #4c4e4d;
  display: block;
  transition: 0.3s;*/
}

/* When you mouse over the navigation links, change their color */
.sidecartnav a:hover {
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidecartnav .closebtn {
/*  position: absolute;
  top: 0;
  right: 25px;*/
  font-size: 36px;
  /*margin-left: 50px;*/
  color: #4c4e4d;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
/*#main {
  transition: margin-left .5s;
  padding: 20px;
}
*/
/* On smaller screens, where height is less than 450px, change the style of the sidecartnav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidecartnav {padding-top: 15px;}
  .sidecartnav a {font-size: 18px;}
}
</style>
<script type="text/javascript">
  /* Set the width of the side navigation to 250px */
function opencartNav() {
  document.getElementById("mySidecartmenu").style.width = "250px";
}

/* Set the width of the side navigation to 0 */
function closecartNav() {
  document.getElementById("mySidecartmenu").style.width = "0";
}
</script>
<!-- end shopping cart menu -->


<!-- front page carousel -->
<?php if (isset($displaycarousel)) {
	if ($displaycarousel == 1) {
		?>

<div id="demo" class="carousel slide" data-ride="carousel">

  <!-- Indicators -->
  <ul class="carousel-indicators">
    <li data-target="#demo" data-slide-to="0" class="active" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li>
    <li data-target="#demo" data-slide-to="1" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li>
    <li data-target="#demo" data-slide-to="2" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li>
<!--     <li data-target="#demo" data-slide-to="3" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li> -->
<!--     <li data-target="#demo" data-slide-to="4" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li>
    <li data-target="#demo" data-slide-to="5" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li>
    <li data-target="#demo" data-slide-to="6" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li>
    <li data-target="#demo" data-slide-to="7" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li>
    <li data-target="#demo" data-slide-to="8" style="width: 10px;
  height: 10px;
  border-radius: 100%;"></li> -->
  </ul>

  <!-- The slideshow -->
  <div class="carousel-inner">
    <div class="carousel-item active">
      <!-- <img src="<?php echo base_url() . "my-assets/image/banner/Banner1.png"; ?>" alt="" class="d-none d-md-block img-fluid" width="1920" height="680"> -->
      <img src="<?php echo base_url() . "my-assets/image/banner/Banner1.png"; ?>" alt="" class="d-none d-md-block img-fluid" >
      <img src="<?php echo base_url() . "my-assets/image/banner/Banner1m.png"; ?>" alt="" class="img-fluid d-block d-md-none" >
    </div>
    <div class="carousel-item">
       <img src="<?php echo base_url() . "my-assets/image/banner/Banner2.png"; ?>" alt="" class="d-none d-md-block img-fluid" >
       <img src="<?php echo base_url() . "my-assets/image/banner/Banner1m.png"; ?>" alt="" class="img-fluid  d-block d-md-none" >
    </div>
    <div class="carousel-item">
       <img src="<?php echo base_url() . "my-assets/image/banner/Banner2.png"; ?>" alt="" class="d-none d-md-block img-fluid" >
       <img src="<?php echo base_url() . "my-assets/image/banner/Banner1m.png"; ?>" alt="" class="img-fluid  d-block d-md-none" >
    </div>

  </div>

  <!-- Left and right controls -->
  <a class="carousel-control-prev" href="#demo" data-slide="prev">
    <span class="carousel-control-prev-icon"></span>
  </a>
  <a class="carousel-control-next" href="#demo" data-slide="next">
    <span class="carousel-control-next-icon"></span>
  </a>
</div>
<?php
} //if (isset($displaycarousel)) {
} //   if ($displaycarousel == 1) {

?>

<!-- end front page carousel -->


<!-- third info row -->
<!-- <div class="row bgpink innershadow mx-0">
    <div class="container">
        <div class="row">
            <div class="col-12 text-center">
                <p class="thidinfo my-2"> -->

                    <!-- >消費滿 HKD 500 包郵 結帳前輸入折價碼 BMM32< -->
                  <?php
// if ($this->session->userdata('language') == "english") {
// 	if ($Web_settings['0']['top_heading_en']) {
// 		echo html_escape($Web_settings['0']['top_heading_en']);
// 	}
// }
// if ($this->session->userdata('language') == "chinese") {
// 	if ($Web_settings['0']['top_heading']) {
// 		echo html_escape($Web_settings['0']['top_heading']);
// 	}
// }
// if ($this->session->userdata('language') == "indonesian") {
// 	if ($Web_settings['0']['top_heading_in']) {
// 		echo html_escape($Web_settings['0']['top_heading_in']);
// 	}
// }
?>




             <!--    </p>
            </div>
        </div>
    </div>
</div> -->
<!-- end third info row -->

<!--Topbar-->
<!-- <div class="topbar topbar-bg color5">
    <div class="container">
        <div class="topbar-text text-nowrap d-none d-md-flex align-items-center">
            <i data-feather="headphones" class="mr-2"></i>
            <span class="mr-1"><?php echo display('have_a_question') ?> <?php echo display('call_us') ?></span>
            <a class="topbar-link" href="tel:<?php echo html_escape($company_info[0]['mobile']) ?>"><?php echo html_escape($company_info[0]['mobile']) ?></a>
        </div>
        <div class="d-flex justify-content-between justify-content-md-end w-100">
            <a class="topbar-link d-flex align-items-center" href="#" data-toggle="modal" data-target="#trackingModal">
                <i data-feather="user" class="mr-2"></i><?php echo display('track_my_order') ?></a> &nbsp;
            <?php
if ($this->session->userdata('customer_name')) {?>
            <div class="topbar-text dropdown disable-autohide ml-3">
                <a class="topbar-link dropdown-toggle" href="#" data-toggle="dropdown" aria-expanded="false">
                    <i data-feather="user" class="mr-2"></i> <?php echo ucwords($this->session->userdata('customer_name')) ?> </a>
                <ul class="dropdown-menu dropdown-menu-right" style="">
                    <li class="dropdown-item">
                        <a href="<?php echo base_url('customer/customer_dashboard') ?>"><?php echo display('dashboard') ?></a>
                    </li>
                    <li class="dropdown-item">
                        <a href="<?php echo base_url('logout') ?>"><?php echo display('logout') ?></a>
                    </li>
                </ul>
            </div>
            <?php } else {?>
                <a class="topbar-link d-flex align-items-center" href="#" data-toggle="modal" data-target="#loginModal">
                <i data-feather="user" class="mr-2"></i><?php echo display('signin') ?></a>
            <?php }?>

            <div class="topbar-text dropdown disable-autohide ml-3">
                <a class="topbar-link dropdown-toggle" href="#" data-toggle="dropdown" aria-expanded="false">
                    <?php
if (!empty($this->session->userdata('language'))) {
	$language_id = $this->session->userdata('language');
} else {
	$language_id = 'english';
}
?>

                    <?php echo ucfirst($language_id); ?> / <?php

$currency_new_id = $this->session->userdata('currency_new_id');
if ($currency_info) {
	foreach ($currency_info as $currency) {
		if (!empty($currency_new_id)) {
			if ($currency->currency_id == $currency_new_id) {
				echo html_escape($currency->currency_name);
			}
		} else {
			if ($currency->currency_id == $selected_cur_id) {
				echo html_escape($currency->currency_name);
			}
		}
	}
}

?></a>
                <ul class="dropdown-menu dropdown-menu-right" style="">
                    <li class="dropdown-item">
                        <select id="change_currency" name="change_currency" class="custom-select custom-select-sm">

                            <?php

if ($currency_info) {
	foreach ($currency_info as $currency) {
		?>
                                    <option value="<?php echo $currency->currency_id ?>" <?php
if (!empty($currency_new_id)) {
			if ($currency->currency_id == $currency_new_id) {
				echo "selected";
			}
		} else {
			if ($currency->currency_id == $selected_cur_id) {
				echo "selected";
			}
		}
		?>><?php echo html_escape($currency->currency_name) ?></option>
                                    <?php
}
}
?>
                        </select>
                    </li>
                     <?php
if (!empty($languages)) {
	foreach ($languages as $lkey => $lvalue) {
		?>
                            <li><a class="dropdown-item pb-1" id="change_language" href="#" data-lang="<?php echo $lkey; ?>"><?php echo $lvalue; ?></a></li>
                        <?php
}
}
?>
                </ul>
            </div>
        </div>
    </div>
</div> -->
<!--Navbar-->


<div class="modal register-modal" id="trackingModal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content border-0">
            <div class="modal-body">
                <button type="button" class="close position-absolute" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>

                <div class="form-title_wrap mb-3">
                    <h4 class="form-title mb-0"><?php echo display('track_my_order') ?></h4>
                </div>
                <!--Login Form-->
                <?php echo form_open('track_my_order'); ?>
                    <div class="form-group">
                        <input type="email" class="form-control" name="order_email" placeholder="<?php echo display('email') ?>" required>
                    </div>
                    <div class="form-group">
                        <input type="text" class="form-control" name="order_number" placeholder="<?php echo display('order_no') ?>" required>
                    </div>
                    <button type="submit" class="btn btn-primary btn-block"><?php echo display('track_my_order') ?></button>
                <?php echo form_close(); ?>
            </div>
        </div>
    </div>
</div>