85 lines
2.2 KiB
PHP
85 lines
2.2 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Laporan Kriteria</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 12px;
|
|
margin: 20px;
|
|
color: #333;
|
|
}
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
font-size: 18px;
|
|
color: #2c3e50;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 40px;
|
|
}
|
|
thead {
|
|
background-color: #2980b9;
|
|
color: white;
|
|
}
|
|
th, td {
|
|
border: 1px solid #ddd;
|
|
padding: 8px 12px;
|
|
text-align: left;
|
|
}
|
|
tbody tr:nth-child(even) {
|
|
background-color: #f4f6f8;
|
|
}
|
|
tbody tr:hover {
|
|
background-color: #d6e9f8;
|
|
}
|
|
footer {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 30px;
|
|
text-align: center;
|
|
font-size: 10px;
|
|
color: #999;
|
|
border-top: 1px solid #ddd;
|
|
padding-top: 5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Laporan Data Kriteria ({{ $tanggal }})</h1>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th style="width:5%;">No</th>
|
|
<th style="width:50%;">Nama Kriteria</th>
|
|
<th style="width:20%;">Attribut</th>
|
|
<th style="width:25%;">Bobot</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($kriteria as $key => $item)
|
|
<tr>
|
|
<td>{{ $key + 1 }}</td>
|
|
<td>{{ $item->nama_kriteria }}</td>
|
|
<td>{{ ucfirst($item->attribut) }}</td>
|
|
<td>{{ number_format($item->bobot, 2) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
@if(count($kriteria) === 0)
|
|
<tr>
|
|
<td colspan="4" style="text-align:center; font-style: italic;">Data kriteria tidak tersedia</td>
|
|
</tr>
|
|
@endif
|
|
</tbody>
|
|
</table>
|
|
|
|
<footer>
|
|
Laporan dicetak pada tanggal {{ $tanggal }}
|
|
</footer>
|
|
</body>
|
|
</html>
|