<?php $this->load->view('theme/include/header'); ?>

<!--Start Main Content-->
<section>
<div class="main-content">
<div class="row">
<div class="inner-contatier">    
<div class="col-md-12 col-lg-12 col-sm-12 content-title"><h4>Admin</h4></div>
<div class="col-md-10 col-lg-10 col-sm-10">

<?php
$message = $this->session->userdata('success');
if($message){?>
<!-- Alert Box -->
<div class="alert my-alert alert-success">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<strong>Success! </strong><?php echo $message; ?>
</div>
<?php
}else{
  $message = $this->session->userdata('error');
  if($message){
  ?>
 <!-- Alert Box -->
<div class="alert my-alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<strong>Alert! </strong><?php echo $message; ?>
</div>
<?php
  }
}
if(validation_errors()) {
?>
<!-- Alert Box //validation error -->
<div class="alert my-alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
<?php echo validation_errors('<i class="fa fa-times"> ','</i></br>'); ?>
</div>
<?php } ?>

<!--Start Panel-->
<div class="panel panel-default">
    <!-- Default panel contents -->
    <div class="panel-heading">Add Admin</div>
    <div class="panel-body add-client">
 <form action="<?php echo site_url('Admin/save') ?>" method="post">

<div class="col-sm-6">
    <div class="form-group">
    <label for="first_name">First Name</label>
    <input type="text" class="form-control" value="<?php echo set_value("first_name"); ?>" name="first_name" id="first_name">
    </div></div>
<div class="col-sm-6">
	<div class="form-group">
	<label for="last_name">Last Name</label>
	<input type="text" class="form-control" value="<?php echo set_value("last_name"); ?>" name="last_name" id="last_name">
	</div></div>
<div class="col-sm-6">
	<div class="form-group">
	<label for="username">Username</label>
	<input type="text" class="form-control" value="<?php echo set_value("username"); ?>" name="username" id="username">
	</div></div>
<div class="col-sm-6">
	<div class="form-group">
	<label for="email">Email</label>
	<input type="email" class="form-control" value="<?php echo set_value("email"); ?>" name="email" id="email">
	</div></div>
<div class="col-sm-6">
	<div class="form-group">
	<label for="password">Password</label>
	<input type="password" class="form-control" value="<?php echo set_value("password"); ?>" name="password" id="password">
	</div></div>
<div class="col-sm-6">
	<div class="form-group">
	<label for="status">Status</label>
	<select name="status" id="status">
	<option value="active">Active</option>
	<option value="inactive">Inactive</option>
	</select>
	</div></div>

<div class="col-sm-12">  
<div class="form-group">     
<button type="submit"  class="mybtn btn-submit"><i class="fa fa-check"></i> Submit</button>
</div></div>

</form>
    </div>
    <!--End Panel Body-->
</div>
<!--End Panel-->       
</div>
    

    

</div><!--End Inner container--->
</div><!--End Row-->
</div><!--End Main-content DIV-->
</section><!--End Main-content Section-->

<?php $this->load->view('theme/include/footer'); ?>

<script type="text/javascript">
$(document).ready(function() {
 
$("#status").select2();   

});

</script>
</body>

</html>
