<style type="text/css">
.receipt
{
font-size:9px;
font-family:"Times New Roman", Times, serif;
}
.div1 {
    resize: both;
    overflow: auto;
    border: 3px solid BLACK;
}
</style>


<table style="border-color:#FFFFFF;font-family:Times New Roman" align="center" width="600">
	<tr>
		<td align="center">
			<img width="130px" height="70px" src="images/logo phssb.png" />
		</td>
		<td >
			<!--<b>
			PERUMAHAN DAN HARTANAH SELANGOR SDN BHD
			<BR/>
			200901031060 (874168-M)
			</b>-->
			<?php include("namasyarikat_ssmno.html");?>
			<div class="div1">
				<small>RESIT RASMI</small>
				<small STYLE="float:right">NO. SIRI :  <?php echo $receipt_no ?></small>
			</div>
			</b>
			</center>
		</td>
	</tr>
</table>

<table class="receipt" align="center" style="border:none;border-color:#999999;font-size:12px;" background="images/phssbwatermark.png" width="550" cellpadding="2">
	<tr>
		<td width="100">NAMA</td>
		<td>: 
			<font face="Courier New, Courier, monospace">
			<?php echo strtoupper($tenant_name) ?>
			</font>
		</td>
	</tr>
	<tr>
		<td>NO. UNIT</td>
		<td>: 
			<font face="Courier New, Courier, monospace">
				<?php echo strtoupper($unit_no) ?> , <?php echo strtoupper($location_name) ?>  
			</font>
		</td>
	</tr>
	<tr>
		<td>KADAR SEWA</td>
		<td>: 
			<font face="Courier New, Courier, monospace">
				RM<?php echo number_format($rental_rate,2) ?>  
			</font>
		</td>
	</tr>
	<tr>
		<td>KETERANGAN</td>
		<td>: 
			<font face="Courier New, Courier, monospace">
			Sewa Bulanan Rumah (<?php echo date("M Y", strtotime($issue_date))?>)
			</font>
		</td>
	</tr>
	<tr>
		<td>JUMLAH</td>
		<td>: 
			<font face="Courier New, Courier, monospace">
				RM <?php echo number_format($amount_paid,2,".",","); 
				if($ref_no != "" || $payment_type_desc != "Cash" )	{
					echo "(". $payment_type_desc." - Ref. No. : ". $ref_no.")";
				}
				?>
			</font>
		</td>
	</tr>
	<tr>
		<td>TARIKH</td>
		<td>: 
			<font face="Courier New, Courier, monospace">
				<?php echo date("d/m/Y H:i A",strtotime($created_at)) ?>
			</font>
		</td>
	</tr>
	
	<tr>
		<td>PIC</td>
		<td>: 
			<font face="Courier New, Courier, monospace">
				 <?php echo ucfirst($PICname)?>
			</font>
		</td>
	</tr>
</table>