<script src="assets/js/king-table.js"></script>
<!-- MAIN CONTENT WRAPPER -->
<div class="content">
	
	<div class="main-content">
		<!-- DATA EXPORT -->
		<div class="widget widget-table">
			<div class="widget-header">
				<h3><i class="fa fa-table"></i> Add Loan Account detail</h3>
			</div>
			<div class="widget-content">
				<table  class="table table-striped table-bordered">
					<?php  $i=1;?>
					<?php $__currentLoopData = $data['LoanApplicantRecords']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $LoanApplicantRec): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<tr>
							<th>Account No.</th><td><b><?php echo e($LoanApplicantRec->lacc_no); ?></b></td>	
							<th>Loan amt</th><td><b><input type="text" value="<?php echo e($LoanApplicantRec->lacc_loanamt); ?>" ></b></td>								
						</tr>						
						<tr>
							<th>Name</th><td><b><?php echo e($LoanApplicantRec->lacc_custname); ?></b></td>	
							<th>Tenor</th><td><b><input type="text" value="<?php echo e($LoanApplicantRec->lacc_tenor); ?>" > months</b></td>								
						</tr>
						<tr>
							<th>Branch</th><td><b><?php echo e($LoanApplicantRec->br_name); ?></b></td>	
							<th>Interest</th><td><input type="text" value="<?php echo e($LoanApplicantRec->lacc_intrate); ?>" >%</td>
						</tr>
						<tr>
							<th>Loan open date</th><td><b><input type="date" value="<?php echo e($LoanApplicantRec->lacc_intrate); ?>" ></b></td>	
							<th>Processing fee()</th><td><input type="text" readonly value="<?php echo e($LoanApplicantRec->lacc_intrate); ?>" ></td>
						</tr>						
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>	
				</table>
			</div>
		</div>
		<!-- END DATA EXPORT -->
		
	</div>
</div>
<!-- /main -->
<script>
	$('.createMod').click(function(e)
	{
		e.preventDefault();
		$('#sideMenu').load($(this).attr('href'));
	});
	
	$('.edit').click(function(e)
	{
		e.preventDefault();
		$('#sideMenu').load($(this).attr('href')); 
	});
	
	function Delete(id)
	{
		//alert(id);
		k = 0;
		if(k == 0)
		{
			k++;
			$.ajax({
				type: "GET",
				url:"/deluser",
				dataType: "json",
				data: {
					'_token': $('input[name=_token]').val(),
					'id': id
				},
				success: function (sdata) {
					if(sdata.status == 1)
					{
						//printSuccessMsg(sdata.message);
						$('#sideMenu').load('viewuser');
					}
					else
					{
						//printErrorMsg(sdata.message)
					}
				}
			});
		}
		
	}	
</script>