<!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>Buku Info</h1></caption>
	<thead>
	<tr>
		<th>NO</th>
		<th>Nama Buku</th>
		<th>Penulis</th>
		<th>ISBN</th>
	</tr>
	</thead>

	<tbody>
	<?php $no=1; ?>
	@foreach($books as $key => $book)
	<tr>
		<td>{{$no++}}</td>
		<td>{{$book->nama_buku}}</td>
		<td>{{$book->penulis}}</td>
		<td>{{$book->isbn}}</td>
	</tr>
	@endforeach
	</tbody>
</table>
</body>
</html>
