MIF_E31230820/resources/views/pdf/laporan.blade.php

76 lines
1.1 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<title>Laporan Prediksi</title>
<style>
body {
font-family: sans-serif;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
table, th, td {
border: 1px solid black;
}
th, td {
padding: 10px;
text-align: center;
}
h1 {
text-align: center;
}
</style>
</head>
<body>
<h1>
Laporan Prediksi Penyakit Daun Padi
</h1>
<table>
<thead>
<tr>
<th>No</th>
<th>Penyakit</th>
<th>Confidence</th>
<th>Tanggal</th>
</tr>
</thead>
<tbody>
@foreach($data as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $item->penyakit }}</td>
<td>{{ $item->confidence }}%</td>
<td>{{ $item->created_at }}</td>
</tr>
@endforeach
</tbody>
</table>
</body>
</html>