
<div class="page-content">
	<div class="page-header position-relative">
		<h1>
			Loan List 

		</h1>

	</div>
	<!--/.page-header-->

	<div class="span7" id="8">
		<form class="form-horizontal" method="post" action="">
			
			<!-- /control-group -->
		</form>
	</div>
	<!-- /control-group -->


	<div class="row-fluid">
		<div class="span12" style="overflow: scroll;">
			<!--PAGE CONTENT BEGINS-->
			<table id="loan-table"
				class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">
				<thead>
					<tr>
						<th>S.No.</th>
						<th>Employee Name</th>
						<th>Loan</th>
						<th>Date</th>
						<th></th>
					</tr>
				</thead>

				<tbody>
				<?php
				    if(is_array($get_loan_take)){
				    	$i=1;
					foreach ( $get_loan_take as $loan ) {
				?>
					<tr>
						<td><?php echo $i;?></td>
						<td> <?php echo $loan['e_name']; ?> </td>
						<td> <?php echo $loan['advance_amount']; ?></td>
						<td><?php echo $loan['day'].'-'.$loan['month'].'-'.$loan['year'];?></td>
						
						
						<td class="td-actions">
						<a href="<?php echo $link->link('add_loan',Admin,'?edit_id='.$loan['id']);?>" class="green"><i class="icon-edit bigger-130 tooltip-success" data-original-title="Edit" data-rel="tooltip" data-placement="top"></i></a>
						<a href="<?php echo $link->link('view_loan',Admin,'?delete_id='.$loan['id']);?>" class="red"><i class="icon-trash bigger-130 tooltip-error" data-original-title="Delete" data-rel="tooltip" data-placement="top"></i></a>
						
						</td>
					</tr>
				<?php $i++; } } ?>       
										</tbody>
			</table>

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


</div>
<!--/.main-content-->
