<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>AdminLTE 3 | Dashboard</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/plugins/fontawesome-free/css/all.min.css');?> ">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Tempusdominus Bbootstrap 4 -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css');?> ">
  <!-- iCheck -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/plugins/icheck-bootstrap/icheck-bootstrap.min.css');?> ">
  <!-- JQVMap -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/plugins/jqvmap/jqvmap.min.css');?> ">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/dist/css/adminlte.min.css');?> ">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/plugins/overlayScrollbars/css/OverlayScrollbars.min.css');?> ">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/plugins/daterangepicker/daterangepicker.css');?> ">
  <!-- summernote -->
  <link rel="stylesheet" href="<?php echo base_url('assets/admin/plugins/summernote/summernote-bs4.css');?> ">
      <link rel="stylesheet" href="<?php echo base_url('assets/admin/css/tag.css');?>">
          <link rel="stylesheet" href="<?php echo base_url('assets/admin/css/jquery.dataTables.min.css');?>">

<?php 
            $fv = $this->db->get('favicon');
            if($fv->num_rows() > 0){
                $fvd = $fv->row();
     ?>
    <link rel="shortcut icon" href="<?php echo base_url('uploads/').$fvd->img; ?>">
<?php } ?> 
  <!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700');?> " rel="stylesheet">
<!-- css texteditor -->
<!-- css texteditor -->
<?php if($this->uri->segment(2) == 'Add_product' OR $this->uri->segment(2) == 'Add_about_us' OR $this->uri->segment(2) == 'Add_terms_condition' OR $this->uri->segment(2) == 'Add_payment_method'){ ?>
   <link rel="stylesheet" href="<?php echo base_url('assets/admin/ckeditor/samples/css/samples.css'); ?>">

<?php } ?>
<!-- css texteditor -->
<!-- css texteditor -->

</head>
<body class="hold-transition sidebar-mini layout-fixed">
<?php
            if(isset($_SESSION['admin'])){
                $data = $_SESSION['admin'];
                $id = $data['id'];
                $q = $this->db->where('id',$id);
                $q = $this->db->get('users');
                $dt = $q->row();

            }
    ?>
<div class="wrapper">

  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
		<a class="nav-link" href="<?php echo base_url();?>" target="_blank" rel="noopener">View Website</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo base_url('admin/Profile/');?>" class="nav-link">Profile</a>
      </li>
	  <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo base_url('admin/Home/logout');?>" class="nav-link">Log Out</a>
      </li>
    </ul>

    <!-- SEARCH FORM -->
    <form class="form-inline ml-3">
      <div class="input-group input-group-sm">
        <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
        <div class="input-group-append">
          <button class="btn btn-navbar" type="submit">
            <i class="fas fa-search"></i>
          </button>
        </div>
      </div>
    </form>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-comments"></i>
          <span class="badge badge-danger navbar-badge">3</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="<?php echo base_url('assets/admin/dist/img/avatar3.png');?>" alt="User Avatar" class="img-size-50 mr-3 img-circle">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Brad Diesel
                  <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">Call me whenever you can...</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="<?php echo base_url('assets/admin/dist/img/avatar3.png');?>" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  John Pierce
                  <span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">I got your message bro</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
              <img src="<?php echo base_url('assets/admin/dist/img/avatar3.png');?>" alt="User Avatar" class="img-size-50 img-circle mr-3">
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Nora Silvester
                  <span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
                </h3>
                <p class="text-sm">The subject goes here</p>
                <p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
        </div>
      </li>
      <!-- Notifications Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge">15</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
          <span class="dropdown-item dropdown-header">15 Notifications</span>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-envelope mr-2"></i> 4 new messages
            <span class="float-right text-muted text-sm">3 mins</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-users mr-2"></i> 8 friend requests
            <span class="float-right text-muted text-sm">12 hours</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item">
            <i class="fas fa-file mr-2"></i> 3 new reports
            <span class="float-right text-muted text-sm">2 days</span>
          </a>
          <div class="dropdown-divider"></div>
          <a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#">
          <i class="fas fa-th-large"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="#" class="brand-link">
      <img src="<?php echo base_url('assets/admin/dist/img/avatar3.png');?>" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light">AdminLTE 3</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="<?php echo base_url('assets/admin/dist/img/avatar3.png');?>" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="<?php echo base_url('admin/Profile/');?>" class="d-block"><?php echo $dt->name; ?></a>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-item">
            <a href="<?php echo base_url('admin/home');?>" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                Dashboard
                <span class="right badge badge-danger">New</span>
              </p>
            </a>
          </li>
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                ALL images
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
               
               <li class="nav-item"><a href="<?php echo base_url('admin/Add_image/');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Images</p>
                </a>
              </li> 
           <li class="nav-item"><a href="<?php echo base_url('admin/Add_image/view');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>View Images</p>
                </a>
              </li> 

              </ul>
          </li>
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon far fa-envelope"></i>
              <p>
                View Message
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?php echo base_url('admin/View_user_massages');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Inbox</p>
                </a>
              </li>            </ul>
          </li>
		   <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-book"></i>
              <p>
                Reviews
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Reviews');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>View New Reviews</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Reviews/old');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>View Aproved Reviews</p>
                </a>
              </li>
            </ul>
          </li>
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-book"></i>
              <p>
                Pages
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_slider/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Slider</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_banner'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Banner</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_logo'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Logo'</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_fav'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add fav</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_marquee'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Marquee</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_about_us'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>About Us</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_terms_condition'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Terms Condition</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_payment_method'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Payment Method</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_privacy_policy/'); ?>"" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>privacy policy</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_how_to_order/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>How To Order</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_delivery_information/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>delivery information</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_warranty_terms/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>warranty terms</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_track_your_order/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>track your order</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_special_discount_offer/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>special discount offer</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_return_exchange/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>return exchange</p>
                </a>
              </li>
            </ul>
          </li>
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon far fa-plus-square"></i>
              <p>
                Product Section
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_product/'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add New Product</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_product/view'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>View All Product</p>
                </a>
              </li>
            </ul>
          </li>
		  <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon far fa-plus-square"></i>
              <p>
                Category
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_category/') ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add New Category</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/Add_category/view') ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>View All Category</p>
                </a>
              </li>
            </ul>
          </li>
		   <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon far fa-plus-square"></i>
              <p>
                Orders
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?php echo base_url('admin/New_orders/');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>New Orders</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="<?php echo base_url('admin/New_orders/old');?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Completed Orders</p>
                </a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  