	<style type="text/css">
	table.table{
	    border-spacing:0px!important;
	}
	table td.vi{
	    visibility:hidden!important;
	    
	}
		.table {
		border:none;
		width:100%;
		}
		.table td {
		border:none;
		padding:3px 0px;
		}
		.pborder {
		border-bottom:1px solid!important;
		}
		.border_left {
		border-left:1px solid!important;
		}
		.border_top {
		border-top:1px solid!important;
		}
		.pdleft {
		padding-left: 40px!important;
		}
		.pr_pdleft {
		padding-left: 80px!important;
		}
		.twdith {
		width: 33.3%;
		}
		#printThisElement{
		visibility:visible;
		height: 100%;
		}
		
		@media print {
		@page {
		size : A5;
		width:14.8cm;
		height:21cm;
		margin: 0 5% 0 5%;
	/*	margin:0px; */
		}
		body * {
		visibility:hidden;
		}
		#printThisElement, #printThisElement * {
		visibility:visible;
		}
		}
	</style>
<?php foreach($paydata as $vch) ?>
<table border="" style="border-spacing: 10px;" class="table" cellspacing="0" cellpadding="0" align="center">
		
				<tr>
					<td colspan="6" align="center" class="main_heading"><strong>BHATTAS FOODS PVT. LTD.</strong></td>
				</tr>
				<tr>
					<td colspan="6"  align="center" class="sub2_heading">#33, #33, 36th Cross, 26th Main,
					</td>
				</tr>
				<tr>
					<td colspan="6"  align="center" class="sub2_heading">4th T Block, Jayanagar, Bangalore - 560 041
					</td>
				</tr>
				<tr>
					<td colspan="6" align="center" class="sub2_heading">GST IN : 29AAECB0808Q1ZC    CIN : U15490KA2009PTC050683</td>
				</tr>
		        <tr>
					<td colspan="" border="0" style="visibility: hidden!important;"><span style="color: white!important;">6</span></td>
				</tr>
				<tr>
					<td colspan="6" align="center" class="sub3_heading" style="padding:3px;"><strong><u>Payment Advice</u></strong></td>
				</tr>
				
				<tr>
					<td colspan="4"><strong>M/s.<?php echo $vch->vendor_name;?></strong></td>
					<td colspan="2" align="right">Date : <strong><?php $tr_date = date('d-m-Y'); echo  $tr_date;  ?></strong></td>
				</tr>
				<tr>
					<td colspan="1"><?php echo  $vch->address ?> <?php echo  $vch->address1;?></td>
					<td colspan="5" class="text-right"></td>
				</tr>
				<tr>
					<td colspan="" border="0" style="visibility: hidden!important;"><span style="color: white!important;">6</span></td>
				</tr>
				<tr>
					<td colspan="6" style="line-height: 35px;">Dear Sir/Madam,</td>
				</tr>
					<!--	<tr>
					<td colspan="6" style="visibility:hidden">1</td>
				</tr>-->
				<tr>
					<td colspan="6" style="line-height: 35px;">Please find below the payment details:</td>
				</tr>
					<!--	<tr>
					<td colspan="6" style="visibility:hidden">1</td>
				</tr>-->
				<tr>
					<td colspan="6"><strong style="line-height: 40px;">Billwise Details :</strong></td>
				</tr>
				<!--	<tr>
					<td colspan="6" style="visibility:hidden">1</td>
				</tr>-->
				<tr>
					<td align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Bill Reference No.</strong></td>
					<td colspan="2" align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Bill Date</strong></td>
					<td align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Amount</strong></td>
					<td style="border-left:1px solid;" ></td></tr>
		    <?php foreach($paydata as $vch1){ ?>
               <tr>
                    <td align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><?php echo  $vch1->invoice_no;?></td>
					<td colspan="2" align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><?php echo  $vch1->invoice_date; ?></td>
					<td align="right" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><?php echo  (float)$vch1->grn_pay_amt?></td>
					<td style="border-left:1px solid;" ></td>
				</tr>
        <?php     } ?>
			        
			
			    <tr>
					<td align="left" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"></td>
					<td colspan="2" align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Net Amount</strong></td>
					<td align="right" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong><?php echo (float)$vch->final_amt;?></strong></td>
					<td style="border-left:1px solid;" ></td>
				</tr>
				<tr>
					<td colspan="4" style="border-top:1px solid;" ></td>
				</tr>
			    <tr>
					<td colspan="" border="0" style="visibility: hidden!important;"><span style="color: white!important;">6</span></td>
				</tr>
				<tr>
					<td colspan="6"><strong style="line-height: 35px;">Payment Details :</strong></td>
				</tr>
					<!--	<tr>
					<td colspan="6" style="visibility:hidden">1</td>
				</tr>-->
			    <tr>
					<td align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Payment Mode</strong></td>
					<td colspan="3" align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Payment reference No.</strong></td>
					<td colspan="1" align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Payment Date</strong></td>
					<td align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong>Amount</strong></td>
				</tr>
				<tr>
					<td align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong><?php echo  $vch->pay_mode;?></strong></td>
					<td colspan="3" align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong><?php echo $vch->transaction_detail;?></strong></td>
					<td colspan="1" align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong><?php echo  $vch->transaction_date;?></strong></td>
					<td align="center" style="border-left:1px solid;border-right:1px solid;border-top:1px solid;border-bottom:1px solid;"><strong><?php echo (float)$vch->total_amt;?></strong></td>
				</tr>
				<tr>
					<td colspan="6" style="border-top:1px solid;" ></td>
				</tr>
				<tr>
					<td colspan="" border="0" style="visibility: hidden!important;"><span style="color: white!important;">6</span></td>
				</tr>
				<tr>
					<td colspan="6" style="line-height: 35px;">Kindly acknowledge the receipt.</td>
				</tr>
					<!--	<tr>
					<td colspan="6" style="visibility:hidden">1</td>
				</tr>-->
				<tr>
					<td colspan="6" style="line-height: 35px;">Thanking You</td>
				</tr>
					<!--	<tr>
					<td colspan="6" style="visibility:hidden">1</td>
				</tr>-->
				<tr>
					<td colspan="2" align="left">Authorised Signatory</td>
					<td colspan="2" align="center"></td>
					<td colspan="2" align="right"></td>
					<br/>
				</tr>
				<!--	<tr>
					<td colspan="6" style="visibility:hidden">1</td>
				</tr>-->
				<tr>
					<td colspan="6" align="center"><strong>This is computer generated document. Hence do not need signature.</strong></td>
				</tr>
			
		</table>