<style>
.paymentmodal {
    width: 75%;
    margin: 30px auto;
}
</style>
<script src="assets/js/king-table.js"></script>
<script src="assets/js/popper.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Charm' rel='stylesheet'>

<div class="printreport">
<!-- MAIN CONTENT WRAPPER -->
<div class="content">	
	<div class="main-content">
		
		<!-- DATA EXPORT -->
		<div class="widget widget-table">
			<div class="widget-content">
<table  class="table table-striped table-bordered">
	<tr>
		<th>
		<p><img src="img/navachethanalogo.png" align="left" style="padding-right: 10px;">
		Navachethana Finance Co. Pvt. Ltd., Ground Floor,<br>Beauty Plaza Building 
	Balmatta Road, Mangaluru-575 001 <br>
	Phone : 0824 - 4255640  
	Mobile : +91 77608 33500
		</p>
		</th>
	</tr>
</table>
<hr>
<b>Terminated Customer's Arrear List:</b><br>
<table  class="table table-striped table-bordered">
	<thead>	
		<tr>
			<th> SL No.</th>
			<th> Loan Account No.</th>
			<th> Name</th>
			<th> Loan Amount</th>
			<th> Loan Start Date</th>
			<th> Loan Close Date</th>
			<th> Loan Tenure</th>
			<th> Outstanding EMI</th>
			<th> Penal Interest</th>
			<th> Legal/Other Charges</th>
			<th> Total Arrear's</th>
		</tr>
	</thead>
	<tbody>	
	<?php  
	$i=1;
	$outstandingemi = 0;
	$Currentemi = 0;
	$penalinterest = 0;
	$legalothercharge = 0;
	?>
		<?php $__currentLoopData = $data['LoanApplicantRecords']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $LoanApplicantRec): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
		<?php
		if($LoanApplicantRec->LoanOutstandingEMIamt != 0 &&  $LoanApplicantRec->Currentemi != 0  )
		{
		?>
		<tr>
			<td><?php echo $i++;?></td>
			<td><b><?php echo e($LoanApplicantRec->lacc_no); ?></b><br><?php echo e($LoanApplicantRec->br_name); ?></td>
			<td><?php echo e($LoanApplicantRec->lacc_custname); ?></td>
			<td style="text-align: right;"><?php echo e($LoanApplicantRec->lacc_loanamt); ?></td>
			<td><?php echo date("d-m-Y",strtotime($LoanApplicantRec->lacc_opendt)); ?></td>
			<td><?php
			echo $effectiveDate = date('d-M-Y', strtotime("+$LoanApplicantRec->lacc_tenor months", strtotime($LoanApplicantRec->lacc_opendt)));			
			?></td>
			<td><center><?php echo e($LoanApplicantRec->lacc_tenor); ?></center></td>
			<td style="text-align: right;"><?php echo e($LoanApplicantRec->LoanOutstandingEMIamt); ?></td>
			<td style="text-align: right;"><?php echo e($LoanApplicantRec->penalinterest); ?></td>
			<td style="text-align: right;"><?php echo e($LoanApplicantRec->legalothercharge); ?></td>
			<td style="text-align: right;"><?php echo $totalamt =  $LoanApplicantRec->LoanOutstandingEMIamt+$LoanApplicantRec->Currentemi+$LoanApplicantRec->penalinterest+$LoanApplicantRec->legalothercharge; ?></td>
		</tr>
		<?php
		}
		?>
		<?php
		$outstandingemi = $outstandingemi + $LoanApplicantRec->LoanOutstandingEMIamt;
		$Currentemi = $Currentemi + $LoanApplicantRec->Currentemi;
		$penalinterest = $penalinterest + $LoanApplicantRec->penalinterest;
		$legalothercharge = $legalothercharge + $LoanApplicantRec->legalothercharge;
		?>
		<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>	
	</tbody>	
	<tfoot>	
		<tr>
			<th></th>
			<th></th>
			<th></th>
			<th></th>
			<th></th>
			<th></th>
			<th></th>
			<th><?php echo $outstandingemi; ?></th>
			<th><?php echo $penalinterest; ?></th>
			<th><?php echo $legalothercharge; ?></th>
			<th><?php echo $outstandingemi+$Currentemi+$penalinterest+$legalothercharge; ?></th>
		</tr>
	</tfoot>
</table>
			</div>
		</div>
		<!-- END DATA EXPORT -->
		

		<!-- END DATA EXPORT -->

				<div class="widget">
					<div class="widget-header">
	<center><button class="btn btn-info btn-default"    id="btnPrint1" onclick="printDiv('printableArea')" ><span class="fa fa-asterisk"></span> Print</button></center>
					</div>
				</div>
		</form>					
	</div>
</div>
<!-- /main -->
</div>