<!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="utf-8"/>

  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>

  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>

  <meta name="description" content=""/>

  <meta name="author" content=""/>

  <title>Y1 Electronics</title>

  <!--favicon-->

  <link rel="icon" href="<?php echo base_url();?>assets/favicon.png" type="image/x-icon">

  <!-- notifications css -->

  <link rel="stylesheet" href="<?php echo base_url();?>adminassets/plugins/notifications/css/lobibox.min.css"/>

  <!-- Vector CSS -->

  <link href="<?php echo base_url();?>adminassets/plugins/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet"/>

  <!-- simplebar CSS-->

  <link href="<?php echo base_url();?>adminassets/plugins/simplebar/css/simplebar.css" rel="stylesheet"/>

  <!-- Bootstrap core CSS-->

  <link href="<?php echo base_url();?>adminassets/css/bootstrap.min.css" rel="stylesheet"/>

  <link href="<?php echo base_url();?>adminassets/plugins/inputtags/css/bootstrap-tagsinput.css" rel="stylesheet" />

  <!-- animate CSS-->

  <link href="<?php echo base_url();?>adminassets/css/animate.css" rel="stylesheet" type="text/css"/>

  <!-- Icons CSS-->

  <link href="<?php echo base_url();?>adminassets/css/icons.css" rel="stylesheet" type="text/css"/>

  <!-- Sidebar CSS-->

  <link href="<?php echo base_url();?>adminassets/css/sidebar-menu.css" rel="stylesheet"/>

  <!-- Custom Style-->

  <link href="<?php echo base_url();?>adminassets/css/app-style.css" rel="stylesheet"/>

  <link href="<?php echo base_url();?>adminassets/plugins/bootstrap-datatable/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css">

  <link href="<?php echo base_url();?>adminassets/plugins/bootstrap-datatable/css/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css">

  <script src="<?php echo base_url();?>adminassets/js/jquery.min.js"></script>

  <script src="<?php echo base_url();?>adminassets/js/popper.min.js"></script>

  <script src="<?php echo base_url();?>adminassets/js/bootstrap.min.js"></script>

  <script src="<?php echo base_url();?>adminassets/plugins/inputtags/js/bootstrap-tagsinput.js"></script>

  <style>

  .alert{padding:10px;}

  </style>

</head>

<body>

<!-- Start wrapper-->

 <div id="wrapper">

  <!--Start sidebar-wrapper-->

   <div id="sidebar-wrapper" data-simplebar="" data-simplebar-auto-hide="true">

     <div class="brand-logo text-center">

      <a href="<?php echo base_url();?>admin">

       <img src="<?php echo base_url();?>assets/logo.png" width="50px">

      <!-- <h6 style="line-height:25px;" class="logo-text">Grocery Store</h6>-->

     </a>

	 </div>

	 

	 <ul class="sidebar-menu do-nicescrol">

      <li class="sidebar-header"><?php echo $this->session->userdata("loggeduser");?></li>
	  <?php if($this->session->userdata("type")=="admin"){?>
      <li>

        <a href="<?php echo base_url();?>admin" class="waves-effect">

          <i class="icon-home"></i><span>Dashboard</span>

        </a>

      </li>
	  
      <li>

        <a href="<?php echo base_url();?>admin/mcategory" class="waves-effect">

          <i class="fa fa-sitemap"></i><span>Category</span>

        </a>

      </li>
      <li>

        <a href="javaScript:void();" class="waves-effect">

        <i class="fa fa-cubes"></i><span>Manage Products</span> 

		   <i class="fa fa-angle-left pull-right"></i>

        </a>

        <ul class="sidebar-submenu">
      	  <li><a href="<?php echo base_url();?>admin/addprod"><i class="zmdi zmdi-long-arrow-right"></i> Add New Product</a></li>

          <li><a href="<?php echo base_url();?>admin/products_list"><i class="zmdi zmdi-long-arrow-right"></i> List Products</a></li>

         
        </ul>

      </li>
      <li>

        <a href="<?php echo base_url();?>admin/blogs" class="waves-effect">

          <i class="fa fa-edit"></i><span>Blogs</span>

        </a>

      </li>
      
      <li>

        <a href="<?php echo base_url();?>admin/cities" class="waves-effect">

          <i class="fa fa-map-marker"></i><span>Cities</span>

        </a>

      </li>
      <li>

        <a href="<?php echo base_url();?>admin/staff" class="waves-effect">

          <i class="fa fa-users"></i><span>Distributors</span>

        </a>

      </li>
      <li>
        <a href="javaScript:void();" class="waves-effect">
        <i class="fa fa-list"></i><span>Manage Orders</span> 
		   <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="sidebar-submenu">
          <li><a href="<?php echo base_url();?>admin/orders/Confirmed"><i class="zmdi zmdi-long-arrow-right"></i> Confirmed Orders</a></li>
          <li><a href="<?php echo base_url();?>admin/orders/Dispatched"><i class="zmdi zmdi-long-arrow-right"></i> Dispatched Orders</a></li>
          <li><a href="<?php echo base_url();?>admin/orders/Delivered"><i class="zmdi zmdi-long-arrow-right"></i> Delivered Orders</a></li>
          <li><a href="<?php echo base_url();?>admin/orders/Completed"><i class="zmdi zmdi-long-arrow-right"></i> Completed Orders</a></li>
      	  <li><a href="<?php echo base_url();?>admin/orders/Pending"><i class="zmdi zmdi-long-arrow-right"></i> Pending Orders</a></li>
        </ul>
      </li>
      <li>
        <a href="javaScript:void();" class="waves-effect">
        <i class="fa fa-list"></i><span>Pre Bookings</span> 
		   <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="sidebar-submenu">
      	  <li><a href="<?php echo base_url();?>admin/bookings"><i class="zmdi zmdi-long-arrow-right"></i> New Bookings</a></li>
          <li><a href="<?php echo base_url();?>admin/bookings/Completed"><i class="zmdi zmdi-long-arrow-right"></i> Completed Bookings</a></li>
          <li><a href="<?php echo base_url();?>admin/bookings/Cancelled"><i class="zmdi zmdi-long-arrow-right"></i> Cancelled Bookings</a></li>
        </ul>
      </li>
      
      <li>
        <a href="<?php echo base_url();?>admin/coupons" class="waves-effect">
          <i class="fa fa-tag"></i><span>Manage Coupons</span>
        </a>
      </li>
      <li>
        <a href="<?php echo base_url();?>admin/influs" class="waves-effect">
          <i class="fa fa-users"></i><span>Influencers</span>
        </a>
      </li>
      <li>
        <a href="<?php echo base_url();?>admin/customers" class="waves-effect">
          <i class="fa fa-users"></i><span>Manage Customers</span>
        </a>
      </li>
      <li>
        <a href="<?php echo base_url();?>admin/create_order" class="waves-effect">
          <i class="fa fa-edit"></i><span>Create New Order</span>
        </a>
      </li>
      <li>
        <a href="<?php echo base_url();?>admin/mails" class="waves-effect">
          <i class="fa fa-envelope"></i><span>Mails</span>
        </a>
      </li>
      <li>
        <a href="<?php echo base_url();?>admin/ContactEnquiries" class="waves-effect">
          <i class="fa fa-envelope"></i><span>Contact Enquiries</span>
        </a>
      </li>
      <?php }else{?>
      <li>
        <a href="<?php echo base_url();?>admin/create_order" class="waves-effect">
          <i class="fa fa-edit"></i><span>Create New Order</span>
        </a>
      </li>
      <li>
        <a href="<?php echo base_url();?>admin/dorders" class="waves-effect">
          <i class="fa fa-list"></i><span>My Orders</span>
        </a>
      </li>
      <?php }?>
      
      
      
      
      
      
      
      
      
      
      
      
      
      <!--
      
      <li>

        <a href="javaScript:void();" class="waves-effect">

        <i class="fa fa-users"></i><span>Distributors</span> 

		   <i class="fa fa-angle-left pull-right"></i>

        </a>

        <ul class="sidebar-submenu">
      	  <li><a href="<?php echo base_url();?>admin/distributors"><i class="zmdi zmdi-long-arrow-right"></i> Add New Distributors</a></li>

      	  <li><a href="<?php echo base_url();?>admin/appr_dist"><i class="zmdi zmdi-long-arrow-right"></i> Approved KYCs</a></li>

        </ul>

      </li>

     

    
      

      
      
      
    </ul>-->

	 

   </div>

   <!--End sidebar-wrapper-->



<!--Start topbar header-->

<header class="topbar-nav">

 <nav class="navbar navbar-expand fixed-top gradient-ibiza">

  <ul class="navbar-nav mr-auto align-items-center">

    <li class="nav-item">

      <a class="nav-link toggle-menu" href="javascript:void();">

       <i class="icon-menu menu-icon"></i>

     </a>

    </li>

  </ul>

     

  <ul class="navbar-nav align-items-center right-nav-link">

    

    <li class="nav-item">

      <a class="nav-link dropdown-toggle dropdown-toggle-nocaret" data-toggle="dropdown" href="#">

        <span class="user-profile"><img src="<?php echo base_url();?>adminassets/images/avatars/avatar-1.png" class="img-circle" alt="user avatar"></span>

      </a>

      <ul class="dropdown-menu dropdown-menu-right animated fadeIn">

        <li class="dropdown-item"><i class="icon-settings mr-2"></i> <a href="<?php echo base_url();?>admin/profile">Profile</a></li>

        <li class="dropdown-divider"></li>

        <li class="dropdown-item"><i class="icon-power mr-2"></i> <a href="<?php echo base_url();?>admin/logout">Logout</a></li>

      </ul>

    </li>

  </ul>

</nav>

</header>