<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Cetak Invoice</title>
</head>
<body onload="window.print()">


	<h1 align="center">Cetak Invoice</h1>
	<hr>

	<table border="1" width="50%" align="center" style="border-collapse: collapse;">
		<tr>
			<td>Username</td>
			<td>:</td>
			<td><?= $invoice->username ?></td>
		</tr>
		<tr>
			<td>Nama</td>
			<td>:</td>
			<td><?= $invoice->nama ?></td>
		</tr>
		<tr>
			<td>Keterangan Request</td>
			<td>:</td>
			<td><?= $invoice->keterangan ?></td>
		</tr>
		<tr>
			<td>Harga</td>
			<td>:</td>
			<td><?= number_format($invoice->price) ?></td>
		</tr>
		<tr>
			<td>Created At</td>
			<td>:</td>
			<td><?= date('d-m-Y H:i:s',strtotime($invoice->created_at)); ?></td>
		</tr>
	</table>

	<table align="right" style="margin-top: 20px;">
        	<tr>
        		<td align="center"><?= date('d-m-Y') ?></td>
        	</tr>
        	<tr>
        		<td height="40px"></td>
        	</tr>
        	<tr>
        		<td align="center">.....................</td>
        	</tr>
        </table>
        
</body>
</html>