<!DOCTYPE html>
<html lang="en">

<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>EightTech Projects</title>
  <!-- base:css -->
  <link rel="stylesheet" href="<?php echo site_url();?>public/assets/vendors/typicons/typicons.css">
  <link rel="stylesheet" href="<?php echo site_url();?>public/assets/vendors/css/vendor.bundle.base.css">
  <!-- endinject -->
  <!-- plugin css for this page -->
  <!-- End plugin css for this page -->
  <!-- inject:css -->
  <link rel="stylesheet" href="<?php echo site_url();?>public/assets/css/style.css">
      <link rel="stylesheet" href="<?php echo site_url();?>/public/assets/css/main.css" />

  <!-- endinject -->
  <style>
	body {
		font-size: 1rem;
		font-family: Verdana;
		font-weight: initial;
		line-height: normal;
		-webkit-font-smoothing: antialiased;
	}
	.sidebar {
		min-height: calc(100vh - 4.625rem);
		background: #ffffff;
		font-family: Verdana;
		font-weight: normal;
		padding: 0;
		width: 236px;
		z-index: 11;
		transition: width 0.25s ease, background 0.25s ease;
		-webkit-transition: width 0.25s ease, background 0.25s ease;
		-moz-transition: width 0.25s ease, background 0.25s ease;
		-ms-transition: width 0.25s ease, background 0.25s ease;
		box-shadow: 0 5px 10px 0 rgba(230, 230, 243, 0.88);
		-webkit-box-shadow: 0 5px 10px 0 rgba(230, 230, 243, 0.88);
		-moz-box-shadow: 0 5px 10px 0 rgba(230, 230, 243, 0.88);
		-ms-box-shadow: 0 5px 10px 0 rgba(230, 230, 243, 0.88);
		margin-left: 0.5rem;
		margin-bottom: 2.062rem;
		border-radius: 6px;
		border: 1px solid #e4e4f4;
	}
	.form-control, .typeahead, .tt-query, .tt-hint, .select2-container--default .select2-selection--single .select2-search__field, .select2-container--default .select2-selection--single, .form-select {
  border: 1px solid #262222;
  font-weight: 400;
}
select.form-control, select.typeahead, select.tt-query, select.tt-hint, .select2-container--default .select2-selection--single select.select2-search__field, .select2-container--default select.select2-selection--single {
  padding: 1rem 0.75rem;
  border: 0;
  outline: 1px solid #2f2b2b;
  color: #312828;
  appearance: none;
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-repeat: no-repeat;
  background-position: 99% center;
}
.navbar .navbar-brand-wrapper {
  background: #FFF;
  transition: width 0.25s ease, background 0.25s ease;
  -webkit-transition: width 0.25s ease, background 0.25s ease;
  -moz-transition: width 0.25s ease, background 0.25s ease;
  -ms-transition: width 0.25s ease, background 0.25s ease;
  width: calc(236px + 0.5rem);
  height: 4.625rem;
}
  </style>
  <link rel="shortcut icon" href="<?php echo site_url();?>public/assets/images/favicon.ico" />
</head>
<body>
  <div class="container-scroller">
    <!-- partial:partials/_navbar.html -->
    <nav class="navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
      <div class="navbar-brand-wrapper d-flex justify-content-center">
        <div class="navbar-brand-inner-wrapper d-flex justify-content-between align-items-center w-100">
          <a class="navbar-brand brand-logo" href="<?php echo site_url();?>"><img src="<?php echo site_url();?>public/assets/images/logo2.png" alt="logo"/></a>
          <a class="navbar-brand brand-logo-mini" href="index.html"><img src="<?php echo site_url();?>public/assets/images/logo-mini.svg" alt="logo"/></a>
          <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
            <span class="typcn typcn-th-menu"></span>
          </button>
        </div>
      </div>
      <div class="navbar-menu-wrapper d-flex align-items-center justify-content-end">
        <ul class="navbar-nav me-lg-2">
          <li class="nav-item nav-profile dropdown">
            <a class="nav-link" href="#" data-bs-toggle="dropdown" id="profileDropdown">
              <b>Welcome<span class="nav-profile-name"><?php echo $this->session->userdata('full_name');?></span></b>
            </a>
            <div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="profileDropdown">
              
              <a href="<?php echo site_url();?>login/logout" class="dropdown-item">
                <i class="typcn typcn-eject text-primary"></i>
                Logout
              </a>
            </div>
          </li>
          
        </ul>
        <ul class="navbar-nav navbar-nav-right">
          <li class="nav-item nav-date dropdown">
            <a class="nav-link d-flex justify-content-center align-items-center" href="javascript:;">
              <h6 class="date mb-0">Today : <?php echo date('M - d- Y');?></h6>
              <i class="typcn typcn-calendar"></i>
            </a>
          </li>
          
          <li class="nav-item dropdown me-0">
            <a class="nav-link count-indicator dropdown-toggle d-flex align-items-center justify-content-center" id="notificationDropdown" href="#" data-bs-toggle="dropdown">
              <i class="typcn typcn-bell mx-0"></i>
              <span class="count"></span>
            </a>
            <div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="notificationDropdown">
              <p class="mb-0 fw-normal float-start dropdown-header">Notifications</p>
              <a class="dropdown-item preview-item">
                <div class="preview-thumbnail">
                  <div class="preview-icon bg-success">
                    <i class="typcn typcn-info mx-0"></i>
                  </div>
                </div>
                <div class="preview-item-content">
                  <h6 class="preview-subject fw-normal">Application Error</h6>
                  <p class="fw-light small-text mb-0 text-muted">
                    Just now
                  </p>
                </div>
              </a>
              <a class="dropdown-item preview-item">
                <div class="preview-thumbnail">
                  <div class="preview-icon bg-warning">
                    <i class="typcn typcn-cog-outline mx-0"></i>
                  </div>
                </div>
                <div class="preview-item-content">
                  <h6 class="preview-subject fw-normal">Settings</h6>
                  <p class="fw-light small-text mb-0 text-muted">
                    Private message
                  </p>
                </div>
              </a>
              <a class="dropdown-item preview-item">
                <div class="preview-thumbnail">
                  <div class="preview-icon bg-info">
                    <i class="typcn typcn-user mx-0"></i>
                  </div>
                </div>
                <div class="preview-item-content">
                  <h6 class="preview-subject fw-normal">New user registration</h6>
                  <p class="fw-light small-text mb-0 text-muted">
                    2 days ago
                  </p>
                </div>
              </a>
            </div>
          </li>
        </ul>
        <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
          <span class="typcn typcn-th-menu"></span>
        </button>
      </div>
    </nav>
    <!-- partial -->
	<?php if($this->session->userdata('menu')=='dashboard') { $dashboard ='active'; } else {$dashboard = '';}?>
		<?php if($this->session->userdata('menu')=='authority') { $authority ='active'; } else {$authority = '';}?>
		<?php if($this->session->userdata('menu')=='type') { $type ='active'; } else {$type = '';}?>
		<?php if($this->session->userdata('menu')=='role') { $role ='active'; } else {$role = '';}?>
		<?php if($this->session->userdata('menu')=='user') { $user ='active'; } else {$user = '';}?>
		<?php if($this->session->userdata('menu')=='company') { $company ='active'; } else {$company = '';}?>
		<?php if($this->session->userdata('menu')=='smtp') { $smtp ='active'; } else {$smtp = '';}?>
		<?php if($this->session->userdata('menu')=='email') { $email ='active'; } else {$email = '';}?>
		<?php if($this->session->userdata('menu')=='access') { $access ='active'; } else {$access = '';}?>
		<?php if($this->session->userdata('menu')=='document') { $document ='active'; } else {$document = '';}?>
		
		<?php if($this->session->userdata('menu')=='type' || $this->session->userdata('menu')=='authority' || $this->session->userdata('menu')=='role' || $this->session->userdata('menu')=='document')  { $master_data ='show'; } else {$master_data= '';}?>
    <nav class="navbar-breadcrumb col-xl-12 col-12 d-flex flex-row p-0">
      
      
    <div class="container-fluid page-body-wrapper">      
      <!-- partial:partials/_sidebar.html -->
      <nav class="sidebar sidebar-offcanvas" id="sidebar">
        <ul class="nav">
          <li class="nav-item">
            <a class="nav-link <?php echo $dashboard;?>" href="<?php echo site_url();?>dashboard/dashboard">
              <i class="typcn typcn-device-desktop menu-icon"></i>
              <span class="menu-title">Dashboard</span>
            </a>
          </li>          
          <li class="nav-item">
            <a class="nav-link " data-bs-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic">
              <i class="typcn typcn-document-text menu-icon"></i>
              <span class="menu-title">Master Data</span>
              <i class="menu-arrow"></i>
            </a>
            <div class="collapse <?php echo $master_data;?>" id="ui-basic">
              <ul class="nav flex-column sub-menu">
                <li class="nav-item"> <a class="nav-link <?php echo $authority;?>" href="<?php echo site_url();?>authority">Authority</a></li>
                <li class="nav-item"> <a class="nav-link <?php echo $type;?>" href="<?php echo site_url();?>type/allType">Type</a></li>              
                <li class="nav-item"> <a class="nav-link <?php echo $role;?>" href="<?php echo site_url();?>role/allrole">Role</a></li>
                <li class="nav-item"> <a class="nav-link <?php echo $document;?>" href="<?php echo site_url();?>document/allDocuments">Documents</a></li>
              </ul>
            </div>
          </li> 
			<li class="nav-item">
            <a class="nav-link <?php echo $company;?>" href="<?php echo site_url();?>company">
              <i class="typcn typcn-device-desktop menu-icon"></i>
              <span class="menu-title">Company</span>
            </a>
          </li>	
		  <li class="nav-item">
            <a class="nav-link <?php echo $company;?>" href="<?php echo site_url();?>upload">
              <i class="typcn typcn-device-desktop menu-icon"></i>
              <span class="menu-title">Upload Documents</span>
            </a>
          </li>	
		  <li class="nav-item">
            <a class="nav-link <?php echo $user;?>" href="<?php echo site_url();?>user">
              <i class="typcn typcn-user menu-icon"></i>
              <span class="menu-title">Users</span>
            </a>
          </li>	
			<li class="nav-item">
            <a class="nav-link" href="index.html">
              <i class="typcn typcn-device-desktop menu-icon"></i>
              <span class="menu-title">Logs</span>
            </a>
          </li>		  
          
          
        </ul>
      </nav>
      <!-- partial -->