<?php defined('BASEPATH') OR exit('No direct script access allowed');
$pagehead   = "Dashboard"; ?>
<!doctype html>
<html lang="en">
<head>
  <?php $this->load->view('admin/includes/header-script')?>
  <title><?=TITLE?></title>
</head>
<body class="pushmenu-push pushmenu-push-toright">
  <?php $this->load->view('admin/includes/left-menu')?> 
  <?php $this->load->view('admin/includes/header')?> 
  <section class="admin-content">
   <div class="container">
    <h2><?=$pagehead?></h2>
    <div class="dashboard d-flex"> 
      <div class="col-sm-12  d-flex no-pad"> 
        <div class="setting">
          <h3><?=$class?></h3>
          <h2>Class Settings</h2>
          <a href="<?= base_url();?>admin/class-name">View</a>
        </div>
        <div class="create">
          <h3><?=$creates?></h3>
          <h2>Create Class</h2>
          <a href="<?= base_url();?>admin/create-class">View</a>
        </div>
        &nbsp &nbsp &nbsp &nbsp
        <div class="setting">
          <h3><?=$list?></h3>
          <h2>Order List</h2>
          <a href="<?= base_url();?>admin/order-list">View</a>
        </div>
        <?php if($this->session->user_type == "admin") { ?>
         <div class="create">
          <h3><?=$users?></h3>
          <h2>Admin users</h2>
          <a href="<?php echo base_url('admin/admin-user');?>">View</a>
        </div>
      <?php } ?>
    </div>
  </div>
</div>
</section>
<!-- Optional JavaScript -->
<?php $this->load->view('admin/includes/footer-script')?> 
</body>
</html>