<!DOCTYPE html>
<html>
<head>
	<title>Convert To PDF</title>
	<style type="text/css">
		table{
			width: 70%;
			margin: 0 auto;
			border: 1px solid;
		}
	</style>
</head>
<body>
<table>
<caption><h1>pembayaran Info</h1></caption>
	<thead>
	<tr>
		<th>NO</th>
		<th>Nama</th>
		<th>Jenis Kamar</th>
		<th>Lama Menginap</th>
		<th>Total</th>
	</tr>
	</thead>

	<tbody>
	<?php $no=1; ?>
	@foreach($pembayarans as $key => $pembayaran)
	<tr>
		<td>{{$no++}}</td>
		<td>{{$pembayaran->nama}}</td>
		<td>{{$pembayaran->jenis_kamar}}</td>
		<td>{{$pembayaran->lama}}</td>
		<td>{{$pembayaran->harga}}</td>
		
	</tr>
	@endforeach

	</tbody>
</table>
</body>
</html>
