 <div class="wrapper row-offcanvas row-offcanvas-left" style="min-height: 612px;">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas" style="min-height: 612px;">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                        <div class="pull-left image">
                            <img src="<?php echo base_url();?>img/avatar3.png" class="img-circle" alt="User Image">
                        </div>
                        <div class="pull-left info">
                            <p>Hello, Admin</p>

                            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                        </div>
                    </div>
                   
                    <ul class="sidebar-menu">
                        <li class="active">
                            <a href="<?php echo site_url('aqadmin/dashboard');?>">
                                <i class="fa fa-dashboard"></i> <span>Dashboard</span>
                            </a>
                        </li>
                        <!-- <li class="sidebar-menu">
                            <a href="https://dashboard.tawk.to" target="_blank">
                                <i class="fa fa-comment-o"></i> <span>Live chat Support</span>
                            </a>
                        </li> -->
                          <li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/sales_report');?>">
                                <i class="fa fa-laptop"></i> <span>Sales report</span>
                            </a>
                        </li>
                        <?php  if($login['role'] == "super"){?>
                       
                         <li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/view_coupon');?>">
                                <i class="fa fa-laptop"></i>
                                <span>Coupon</span>
                               
                            </a>
                          
                        <li class="treeview">
                            <a href="#">
                                <i class="fa fa-th"></i>
                                <span>Orders</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
								<?php 
								$v1=1;
								$v2=2;
								
								?>
                                <!-- <li><a href="<?php echo site_url('aqadmin/view_order')."/".$v1;?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>User to grocery</a></li> -->
                                 <li><a href="<?php echo site_url('aqadmin/view_order')."/".$v2;?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>B2C to Hubnetix</a></li>
                                  <li><a href="<?php echo site_url('aqadmin/view_online_order');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>B2B to Hubnetix</a></li>
                            </ul>
                        </li>
                         <!--<li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/view_transaction');?>">
                                <i class="fa fa-th"></i>
                                <span>Transaction</span>
                                
                            </a>
                           
                        </li>-->
                        <li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/view_suscriber');?>">
                                <i class="fa fa-th"></i>
                                <span>Suscriber list</span>
                                
                            </a>
                           
                        </li>
                            <li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/view_admin');?>">
                                <i class="fa fa-th"></i>
                                <span>Staff management</span>
                                
                            </a>
                           
                        </li>
                        <?php }  ?>
                        <?php
								$a=1; $b=2; $c=3; $d=4; $e=5; $f=6; $g=7; $h=8;								
								$link=explode(",",$login['link']); ?>
								 <?php if(in_array($g,$link)){?>
                           <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>Online store</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo site_url('aqadmin/view_product');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Normal products</a></li>
                                <li><a href="<?php echo site_url('aqadmin/view_pproduct');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Promtoional products</a></li>

                            
                            </ul>
                        </li>
                       <?php } ?>
                       <?php if(in_array($h,$link)){?>
                       <!-- <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>Grocery products</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
								<?php $val=1;?>
                                <li><a href="<?php echo site_url('aqadmin/view_product')."/".$val;?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Normal products</a></li>
                                <li><a href="<?php echo site_url('aqadmin/view_pproduct')."/".$val;?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Promtoional products</a></li>

                            
                            </ul>
                        </li> -->
                        <?php } ?>
								<?php if(in_array($a,$link)){?>
                         <li class="treeview">
                            <a href="#">
                                <i class="fa fa-th"></i>
                                <span>B2B</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                               
                                 <li><a href="<?php echo site_url('aqadmin/view_grocerry');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>List</a></li>
                                  <li><a href="<?php echo site_url('aqadmin/view_b2b_category');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Categories</a></li>
                            </ul>
                        </li>
                        <?php } ?>
                        <?php if(in_array($b,$link)){?>
                           <li class="treeview">
                            <a href="#">
                                <i class="fa fa-th"></i>
                                <span>B2C management</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo site_url('aqadmin/view_user');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>View</a></li>
                                 <li><a href="<?php echo site_url('aqadmin/view_review');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Reviews</a></li>
                            </ul>
                        </li>
                        <?php } ?>
                        <?php if(in_array($c,$link)){?>
                           <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>Categorization</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a href="<?php echo site_url('aqadmin/view_cat');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Category</a></li>
                                 <li><a href="<?php echo site_url('aqadmin/view_scat');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Subcategory</a></li>
                            </ul>
                        </li>
                        <?php } ?>
                        <?php if(in_array($d,$link)){?>
                      <li class="treeview">
                            <a href="#">
                                <i class="fa fa-laptop"></i>
                                <span>Locality</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
								
                        <!--<li><a href="<?php  echo site_url('aqadmin/view_country');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Country</a></li>-->
                                 <li><a href="<?php echo site_url('aqadmin/view_garea');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Governing area</a></li>
                                 <li><a href="<?php echo site_url('aqadmin/view_area');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Area</a></li>
                                 <!-- <li><a href="<?php echo site_url('aqadmin/view_block');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Block</a></li>
                                 <li><a href="<?php echo site_url('aqadmin/view_street');?>" style="margin-left: 10px;"><i class="fa fa-angle-double-right"></i>Street</a></li> -->

                            
                            </ul>
                        </li>
                        <?php } ?>
                        <?php if(in_array($e,$link)){?>
                         <li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/view_brand');?>">
                                <i class="fa fa-laptop"></i>
                                <span>Brand</span>
                               
                            </a>
                           
                        </li>
                        <?php } ?>
                        <?php if(in_array($f,$link)){?>
                        <li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/view_unit');?>">
                                <i class="fa fa-laptop"></i>
                                <span>Unit</span>
                               
                            </a>
                           
                        </li>
                       <?php } ?>
                      
                       <!-- <li class="sidebar-menu">
                            <a href="<?php echo site_url('aqadmin/bulk_push');?>">
                                <i class="fa fa-bell"></i> <span>Send APP Notification</span>
                            </a>
                        </li>  -->
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Hubnetix
                        <small>Admin panel</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li class="active">Dashboard</li>
                    </ol>
                </section>
