132 lines
4.4 KiB
PHP
132 lines
4.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Laporan Rekapitulasi Hasil Konsultasi Siswa</title>
|
|
<style>
|
|
/* Setup Ukuran Halaman Landscape via CSS Dompdf */
|
|
@page {
|
|
size: A4 landscape;
|
|
margin: 1.5cm;
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 10px;
|
|
color: #333;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.kop-surat {
|
|
text-align: center;
|
|
border-bottom: 3px double #000;
|
|
padding-bottom: 8px;
|
|
margin-bottom: 15px;
|
|
}
|
|
.kop-surat h2 { margin: 0; font-size: 15px; text-transform: uppercase; }
|
|
.kop-surat p { margin: 3px 0 0 0; font-size: 10px; color: #555; }
|
|
|
|
.meta-info { margin-bottom: 12px; width: 100%; border-collapse: collapse; }
|
|
.meta-info td { font-size: 10px; vertical-align: top; padding: 2px 0; }
|
|
|
|
table.data-table { width: 100%; border-collapse: collapse; margin-top: 5px; }
|
|
table.data-table th, table.data-table td {
|
|
border: 1px solid #333;
|
|
padding: 5px 6px;
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
}
|
|
table.data-table th {
|
|
background-color: #f1f5f9;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
font-size: 9.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.text-center { text-align: center; }
|
|
.fw-bold { font-weight: bold; }
|
|
.badge-jurusan { font-weight: bold; color: #166534; background-color: #f0fdf4; }
|
|
|
|
.ttd-container {
|
|
margin-top: 25px;
|
|
float: right;
|
|
width: 220px;
|
|
text-align: center;
|
|
page-break-inside: avoid;
|
|
}
|
|
.ttd-space { height: 50px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Kop Laporan Resmi -->
|
|
<div class="kop-surat">
|
|
<h2>REKAPITULASI HASIL REKOMENDASI SISWA</h2>
|
|
<p>Sistem Rekomendasi Pemilihan Jurusan Berbasis Algoritma C4.5</p>
|
|
</div>
|
|
|
|
<!-- Informasi Dokumen -->
|
|
<table class="meta-info">
|
|
<tr>
|
|
<td width="12%"><strong>Tanggal Cetak</strong></td>
|
|
<td width="1%">:</td>
|
|
<td width="37%">{{ $tanggalCetak }}</td>
|
|
<td width="15%"><strong>Total Konsultasi</strong></td>
|
|
<td width="1%">:</td>
|
|
<td width="34%">{{ $totalKonsultasi }} Siswa</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Metode</strong></td>
|
|
<td>:</td>
|
|
<td>Decision Tree (Algoritma C4.5)</td>
|
|
<td><strong>Status Laporan</strong></td>
|
|
<td>:</td>
|
|
<td>Laporan Rekapitulasi Resmi</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- Tabel Data Rekapitulasi Lengkap Atribut C4.5 -->
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th width="4%">No</th>
|
|
<th width="15%">Nama Siswa</th>
|
|
<th width="10%">Nilai</th>
|
|
<th width="14%">Minat Utama</th>
|
|
<th width="12%">Cita-Cita</th>
|
|
<th width="16%">Preferensi Studi</th>
|
|
<th width="16%">Hasil Rekomendasi</th>
|
|
<th width="13%">Waktu Konsultasi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($data as $index => $row)
|
|
<tr>
|
|
<td style="text-align: center;">{{ $index + 1 }}</td>
|
|
<td class="fw-bold">{{ $row->nama }}</td>
|
|
<td style="text-align: center;">{{ $row->nilai_raw }}</td>
|
|
<td>{{ $row->minat_raw }}</td>
|
|
<td>{{ $row->cita_cita_raw }}</td>
|
|
<td>{{ $row->preferensi_studi_raw }}</td>
|
|
<td class="text-center badge-jurusan">{{ $row->hasil_rekomendasi }}</td>
|
|
<td class="text-center">{{ \Carbon\Carbon::parse($row->created_at)->format('d/m/Y H:i') }} WIB</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="8" class="text-center">Belum ada data konsultasi.</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
|
|
<!-- Blok Tanda Tangan BK / Admin -->
|
|
<div class="ttd-container">
|
|
<p>Mengetahui,<br><strong>Guru Bimbingan Konseling</strong></p>
|
|
<div class="ttd-space"></div>
|
|
<p>( ........................................... )<br>NIP. ......................................</p>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |