91 lines
2.1 KiB
PHP
91 lines
2.1 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Riwayat Diagnosa & AHP</title>
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
font-size: 12px;
|
|
}
|
|
|
|
h2 {
|
|
text-align: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
border: 1px solid #333;
|
|
padding: 4px 6px;
|
|
text-align: left;
|
|
}
|
|
|
|
th {
|
|
background: #eee;
|
|
}
|
|
|
|
.badge-diagnosa {
|
|
background: #4ECDC4;
|
|
color: #fff;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.badge-ahp {
|
|
background: #FF8A65;
|
|
color: #fff;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<h2>Riwayat Diagnosa & AHP</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Tanggal</th>
|
|
<th>Jenis</th>
|
|
<th>Jurusan</th>
|
|
<th>Skor/Presentase</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($records as $i => $r)
|
|
<tr>
|
|
<td>{{ $i + 1 }}</td>
|
|
<td>{{ $r['tanggal'] }}</td>
|
|
<td>
|
|
@if ($r['type'] == 'Diagnosa')
|
|
<span class="badge-diagnosa">Diagnosa</span>
|
|
@else
|
|
<span class="badge-ahp">AHP</span>
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if ($r['type'] === 'Diagnosa')
|
|
{{ $r['kecerdasan'] }}
|
|
@elseif ($r['type'] === 'AHP')
|
|
{{ $r['jurusan'] }}
|
|
@endif
|
|
</td>
|
|
<td>{{ $r['skor'] }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<p>Dicetak tanggal: {{ date('d-m-Y H:i') }}</p>
|
|
</body>
|
|
|
|
</html>
|