<!DOCTYPE html>
<html>
<head>
	<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
	<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
	<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
	<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
	<link href="assets/css/main.css" rel="stylesheet" type="text/css">
	<link href="assets/css/my-custom-styles.css" rel="stylesheet" type="text/css">
	<link href="css/jquery.toast.min.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="css/jquery-confirm.min.css">
	<meta charset="utf-8">
	<!------ Include the above in your HEAD tag ---------->
	<style>
	.invoice-title h2, .invoice-title h3 {
		display: inline-block;
	}

	.table > tbody > tr > .no-line {
		border-top: none;
	}

	.table > thead > tr > .no-line {
		border-bottom: none;
	}

	.table > tbody > tr > .thick-line {
		border-top: 2px solid;
	}
	</style>
	<meta charset="utf-8">
</head>
<body onafterprint="afterprint()">
	<div class="container">
		<div class="row">
			<div class="col-xs-12">
				<div class="invoice-title">
						<center><img src="img/printlogo.png"></center>
					<hr>
					<center><b style="font-size: x-large;"> <?php echo e(__('report.ministatement')); ?></b></center>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<table  class="table table-sorting table-striped table-hover table-bordered datatable">
					<thead>
						<tr>
							<th> <?php echo e(__('report.ministatement')); ?> :- <?php echo e(date("d-m-Y",strtotime($data['tdate']))); ?></th>
							<th style='width: 125px;text-align: right;'><?php echo e(__('report.transaction_bill')); ?></th>	
						</tr>
					</thead>
					<tbody>
						<tr>
							<th> <?php echo e(__('report.previousstatement')); ?> </th>
							<td style='width: 125px;text-align: right;'>
							 <?php echo e($data['trn_transaction'][0]->prepaidamt + $data['trn_transaction'][0]->preadvamt + $data['trn_transaction'][0]->preprepayamt); ?></td>	
						</tr>
						<tr>
							<th> <?php echo e(__('report.todaysministatement')); ?> </th>
							<td style='width: 125px;text-align: right;'> <?php echo e($data['trn_transaction'][0]->currpaidamt + $data['trn_transaction'][0]->curradvamt + $data['trn_transaction'][0]->currprepayamt); ?></td>	
						</tr>
						<tr>
							<th style='text-align: right;'>Total :</th>
							<th style='text-align: right;'><?php echo e($data['trn_transaction'][0]->prepaidamt + $data['trn_transaction'][0]->preadvamt + $data['trn_transaction'][0]->preprepayamt + $data['trn_transaction'][0]->currpaidamt + $data['trn_transaction'][0]->curradvamt + $data['trn_transaction'][0]->currprepayamt); ?></th>				
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
<script>
$(document).ready(function()
{
	window.print();
});
function afterprint()
{
	window.close();
}
</script>
</html>