<?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 List</h4></div>
<div class="col-md-12 col-lg-12 col-sm-12">

<?php
$message = $this->session->userdata('success');
if($message){?>
<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 } ?>



<!--Start Panel-->
<div class="panel panel-default">
    <!-- Default panel contents -->
    <div class="panel-heading">Manage Admin</div>
    <div class="panel-body manage-client">
    <table class="table table-bordered">
    <thead>
    <th>First Name</th>
	<th>Last Name</th>
	<th>Username</th>
	<th>Email</th>
	<th>Status</th>
	<th>Creation Date</th>
	<th>Action</th>
	</thead>
	<tbody>
	<?php foreach($table_data as $t) {?>
	<tr><td><?php echo $t->first_name; ?></td>
	<td><?php echo $t->last_name; ?></td>
	<td><?php echo $t->username; ?></td>
	<td><?php echo $t->email; ?></td>
	<td><?php echo $t->status; ?></td>
	<td><?php echo $t->creation_date; ?></td>
	<td>
  <a class='btn btn-warning btn-xs' href='<?php echo site_url('Admin/edit/'.$t->id) ?>'><i class="fa fa-pencil-square-o"></i></a>
  <a class='btn btn-danger btn-xs btn-remove' href='<?php echo site_url('Admin/remove/'.$t->id) ?>'><i class="fa fa-trash"></i></a>
  </td></tr>
     <?php } ?>
    </tbody>
  </table>
    </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() {
$(".manage-client").niceScroll({
cursorwidth: "8px",cursorcolor:"#7f8c8d"
});

});

</script>
</body>

</html>
