
<!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>iHRMS: Human Resource Dashboard</title>
      <!--ckeditor cdn-->
      <script src="https://cdn.ckeditor.com/4.9.2/standard/ckeditor.js"></script>
      <script src="<?= base_url(); ?>assets/js/ckeditor.js"></script>
      <script src="<?= base_url(); ?>assets/ckeditor/ckeditor.js"></script>
      <!--w3 css dropdown-->
      <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
      <!--w3 css webservice icons-->
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
      <!-- W3 CSS STYLES-->
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
      <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
      <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
      <link rel="stylesheet" href="http://www.w3schools.com/lib/w3-theme-blue-grey.css">
      <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans'>
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
  <!-- VEERS CSS STYLE-->
  <link href="<?= base_url(); ?>assets/veers_styles/tooltip.css" rel="stylesheet" />
  <link href="<?= base_url(); ?>assets/veers_styles/twinkle.css" rel="stylesheet" />
  <link href="<?= base_url(); ?>assets/veers_styles/veer.css" rel="stylesheet" />
  <link href="<?= base_url(); ?>assets/veers_styles/style.css" rel="stylesheet" />
  
  <!-- Bootstrap core CSS-->
  <link href="<?= base_url(); ?>assets/user/hr/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <!-- Custom fonts for this template-->
  <link href="<?= base_url(); ?>assets/user/hr/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  <!-- Custom styles for this template-->
  <link href="<?= base_url(); ?>assets/user/hr/css/sb-admin.css" rel="stylesheet">
</head>

<body class="fixed-nav sticky-footer bg-dark" id="page-top">

  <!-- Navigation-->
  <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav" style="padding:0;">
        <a class="navbar-brand" href="<?= base_url('humanresource/index'); ?>"><label onmouseover="this.style.color='red';" onmouseout="this.style.color='green';" class='confirm_selection'><i style="color:grey;font-size:36px;">iHRMS</i></label></a>
        <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarResponsive" >

              <ul class="navbar-nav navbar-sidenav" id="exampleAccordion" style="overflow-y: auto;">
                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Dashboard">
                            <a class="nav-link" href="<?= base_url('humanresource/index'); ?>">
                              <i class="fa fa-fw fa-dashboard"></i>
                              <span class="nav-link-text">Dashboard</span>
                            </a>
                      </li>

                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Employee">
                      <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#employee" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-cogs"></i>
                              <span class="nav-link-text">Employee Data</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="employee">
                                  <li>
                                        <a href="<?= base_url('humanresource/add_employee_view'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Add Employee</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/employee_detail_list'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Employee details</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/terminated_employee_list'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Terminate List</a>
                                  </li>
 
                            </ul>
                      </li>


                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Attendence">
                      <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#Attendence" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-cogs"></i>
                              <span class="nav-link-text">Employee Attendence</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="Attendence">
                                  <li>
                                        <a href="<?= base_url('humanresource/attendence_make'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Make Attendence</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/attendence_view'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>View   Attendence</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/attendence_setting'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Attendence Settings</a>
                                  </li>
                            </ul>
                      </li>


                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Employee Leave">
                      <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#leave" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-cogs"></i>
                              <span class="nav-link-text">Employee Leave</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="leave">
                                  <li>
                                        <a href="<?= base_url('humanresource/manage_emp_leave_request'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Leave Requests</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/manage_emp_grant_leave'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Grant Leave</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/manage_emp_leave_setting'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Leave Settings</a>
                                  </li>
                            </ul>
                      </li>


                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Employee Payroll">
                      <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#payroll" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-cogs"></i>
                              <span class="nav-link-text">Employee Payroll</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="payroll">
                                  <li>
                                        <a href="<?= base_url('humanresource/manage_emp_deg_dept'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Designation & Department</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/manage_emp_sal_setup'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Salary Setup</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/manage_emp_leave_att'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Performance Record</a><!--it will have  all leave and attendence history with all resons and details ffor the employee so that their performance can be calculated-->
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/manage_emp_appraisal'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Appraisal</a>
                                  </li>
                            </ul>
                      </li>

                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Onboarding">
                      <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#onboarding" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-cogs"></i>
                              <span class="nav-link-text">Work Order</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="onboarding">
                                  <li>
                                        <a href="<?= base_url('humanresource/work_order'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>View Work Order</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('humanresource/work_order_bill'); ?>"><i class="fa fa-fw fa-lightbulb-o"></i>Work Order Bill</a>
                                  </li>
                            </ul>
                      </li>



                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="My Profile">
                            <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#myprofile" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-user"></i>
                              <span class="nav-link-text">My Profile</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="myprofile">
                                  <li>
                                        <a href="<?= base_url('humanresource/my_profile_view'); ?>"><i class="fa fa-fw fa-eye"></i>View</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('instructor/my_profile_update'); ?>"><i class="fa fa-fw fa-id-card"></i>Update</a>
                                  </li>
                            </ul>
                      </li>

                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="My Leave">
                            <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#myleave" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-user"></i>
                              <span class="nav-link-text">My Leave</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="myleave">
                                  <li>
                                        <a href="<?= base_url('humanresource/my_leave_request'); ?>"><i class="fa fa-fw fa-eye"></i>Send Leave Request</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('instructor/my_leave_history'); ?>"><i class="fa fa-fw fa-id-card"></i>Leave History</a>
                                  </li>
                            </ul>
                      </li>

                      
                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="My Attendence">
                            <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#myattendence" data-parent="#exampleAccordion">
                              <i class="fa fa-fw fa-user"></i>
                              <span class="nav-link-text">My Attendence</span>
                            </a>
                            <ul class="sidenav-second-level collapse" id="myattendence">
                                  <li>
                                        <a href="<?= base_url('humanresource/my_attendence_request'); ?>"><i class="fa fa-fw fa-eye"></i>Todays Attendence</a>
                                  </li>
                                  <li>
                                        <a href="<?= base_url('instructor/my_attendence_history'); ?>"><i class="fa fa-fw fa-id-card"></i>Attendence  History</a>
                                  </li>
                            </ul>
                      </li>

                      <li class="nav-item" data-toggle="tooltip" data-placement="right" title="information Board">
                            <a class="nav-link" href="<?= base_url('humanresource/information_board'); ?>">
                                  <i class="fa fa-fw fa-rss-square"></i>
                                  <span class="nav-link-text">Information Board</span>
                            </a>
                      </li>
              </ul>

              <ul class="navbar-nav sidenav-toggler">
                    <li class="nav-item">
                          <a class="nav-link text-center" id="sidenavToggler">
                            <i class="fa fa-fw fa-angle-left"></i>
                          </a>
                    </li>
              </ul>

              <ul class="navbar-nav ml-auto">

                      <li class="nav-item">
                            <a class="nav-link" data-toggle="modal" data-target="#exampleModal">
                            <i class="fa fa-fw fa-sign-out"></i>Logout</a>
                      </li>

              </ul>

        </div>

  </nav>





  <div class="content-wrapper">
    <div class="container-fluid">
            <div class="w3-container">

	<?php if($this->session->flashdata('hr_loggedin')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('hr_loggedin').'</p>'; ?>
	<?php endif; ?>

	<?php if($this->session->flashdata('emp_email_send_success')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('emp_email_send_success').'</p>'; ?>
	<?php endif; ?>
	<?php if($this->session->flashdata('emp_email_send_failed')): ?>
	<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('emp_email_send_failed').'</p>'; ?>
	<?php endif; ?>

	<?php if($this->session->flashdata('emp_created_success')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('emp_created_success').'</p>'; ?>
	<?php endif; ?>
	<?php if($this->session->flashdata('emp_created_failed')): ?>
	<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('emp_created_failed').'</p>'; ?>
	<?php endif; ?>

	<?php if($this->session->flashdata('employee_update_success')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('employee_update_success').'</p>'; ?>
	<?php endif; ?>
	<?php if($this->session->flashdata('employee_update_failed')): ?>
	<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('employee_update_failed').'</p>'; ?>
	<?php endif; ?>

	<?php if($this->session->flashdata('employee_active_success')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('employee_active_success').'</p>'; ?>
	<?php endif; ?>
	<?php if($this->session->flashdata('employee_active_failed')): ?>
	<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('employee_active_failed').'</p>'; ?>
	<?php endif; ?>

	<?php if($this->session->flashdata('employee_inactive_success')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('employee_inactive_success').'</p>'; ?>
	<?php endif; ?>
	<?php if($this->session->flashdata('employee_inactive_failed')): ?>
	<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('employee_inactive_failed').'</p>'; ?>
	<?php endif; ?>

	<?php if($this->session->flashdata('employee_terminated_success')): ?>
	<?php echo '<p class="alert alert-success">'.$this->session->flashdata('employee_terminated_success').'</p>'; ?>
	<?php endif; ?>
	<?php if($this->session->flashdata('employee_terminated_failed')): ?>
	<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('employee_terminated_failed').'</p>'; ?>
	<?php endif; ?>
