 <div class="content-wrapper">
   <!-- Content Header (Page header) -->
   <div class="content-header">
     <div class="container-fluid">
       <div class="row mb-2">
         <div class="col-sm-6">
           <h1 class="m-0 text-dark"><?php echo $title ?></h1>
         </div><!-- /.col -->
         <div class="col-sm-6">
           <ol class="breadcrumb float-sm-right">
             <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
             <li class="breadcrumb-item"><a href="#"><?php echo ucwords(str_replace("_", " ", $this->uri->segment(2))); ?></a></li>
             <li class="breadcrumb-item active"><?php echo ucwords(str_replace("_", " ", $title)); ?></li>

           </ol>
         </div><!-- /.col -->
       </div><!-- /.row -->
     </div><!-- /.container-fluid -->
   </div>
   <!-- Main content -->
   <section class="content">
     <div class="container-fluid">

       <!-- Info boxes -->
       <div class="row">
         <div class="col-sm-12">
           <div class="card card-default">
             <div class="card-header">
               <h3 class="card-title"><?php echo $title ?></h3>

               <div class="card-tools">
                 <a href="<?php echo admin_url(); ?>employee_management/view_all_employee" class="btn btn-primary btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View Employee</a>
               </div>
             </div>
             <!-- /.card-header -->
             <?php echo form_open('admin/employee_management/update_employee_add'); ?>
             <div class="card-body">
               <div class="row">
                 <div class="col-md-4">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">User Role <span class="required">*</span></label>
                     <div class="col-sm-12">
                       <select class="form-control" name="role" placeholder="Enter Employee Name" required="required">
                         <option value="">Select From List</option>
                         <option <?php if($employee->role == 'Employee'){echo 'selected';} ?> value="Employee">Employee</option>
                         <option <?php if($employee->role == 'DBA'){echo 'selected';} ?> value="DBA">DBA</option>
                       </select>
                     </div>
                   </div>
                 </div>

                 <div class="col-md-8">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Employee Name <span class="required">*</span></label>
                     <div class="col-sm-12">
                       <input class="form-control" name="name" placeholder="Enter Employee Name" required="required" value="<?php echo $employee->name ?>">
                     </div>
                   </div>
                 </div>

                 <div class="col-md-6">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Employee Mobile No. (This is Login ID) <span class="required">*</span></label>
                     <div class="col-sm-12">
                       <input class="form-control" name="mobile" placeholder="Enter Employee Mobile No" required="required" type="number" value="<?php echo $employee->mobile ?>">
                     </div>
                   </div>
                 </div>

                 <div class="col-md-6">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Employee Email ID <span class="required">*</span></label>
                     <div class="col-sm-12">
                       <input class="form-control" name="email" placeholder="Enter Employee Email ID" required="required" type="email" value="<?php echo $employee->email ?>">
                     </div>
                   </div>
                 </div>
                 <div class="col-md-4">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Employee Login Time </label>
                     <div class="col-sm-12">
                       <input class="form-control" name="login_time" placeholder="Enter Employee Password"  type="time" value="<?php echo $employee->login_time ?>">
                     </div>
                   </div>
                 </div>
                 <div class="col-md-4">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Employee Logout Time </label>
                     <div class="col-sm-12">
                       <input class="form-control" name="logout_time" placeholder="Enter Employee Password" type="time" value="<?php echo $employee->logout_time ?>">
                     </div>
                   </div>
                 </div>
                 <div class="col-md-4">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Employee Mode <span class="required">*</span></label>
                     <div class="col-sm-12">
                       <select class="form-control" name="mode" placeholder="Enter Employee Password" required="required">
                         <option <?php if ($employee->mode == "Part Time") {
                                    echo 'selected';
                                  } ?> value="Part Time">Part Time</option>
                         <option <?php if ($employee->mode == "Full Time") {
                                    echo 'selected';
                                  } ?> value="Full Time">Full Time</option>
                       </select>
                     </div>
                   </div>
                 </div>

                 <div class="col-md-4">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Employee Working Hours </label>
                     <div class="col-sm-12">
                       <input class="form-control" name="working_hrs" placeholder="Enter Employee Working Hours" type="number" value="<?php echo $employee->working_hrs ?>">
                     </div>
                   </div>
                 </div>
                 <div class="col-md-8">
                   <div class="form-group">
                     <label for="inputEmail" class="col-sm-12 col-form-label">Login IP </label>
                     <div class="col-sm-12">
                       <input class="form-control" name="assign_ip" placeholder="Enter Employee Login IP" type="text" value="<?php echo $employee->assign_ip ?>">
                     </div>
                   </div>
                 </div>
                 <input name="employee_id" type="hidden" value="<?php echo $employee->id ?>">

                 <div class="col-md-12">
                   <div class="form-group">
                     <button name="submit" style="float: right" type="submit" class="btn btn-success">Update</button>
                   </div>
                 </div>

                 <?php echo form_close() ?>


                 <!-- /.col -->
               </div>
               <!-- /.row -->
             </div>
             <!-- /.card-body -->
           </div>
         </div>
       </div>
       <!-- /.row -->
     </div><!--/. container-fluid -->
   </section>
   <!-- /.content -->
 </div>