MIF_E31230680/resources/views/perankingan/cetak_pdf.blade.php

56 lines
1.8 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Laporan Ranking Bansos</title>
<style>
body { font-family: Arial, sans-serif; line-height: 1.6; margin: 20px; }
.header { text-align: center; margin-bottom: 30px; border-bottom: 2px solid #000; padding-bottom: 10px; }
.header h2 { margin: 0; text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #000; padding: 10px; text-align: center; font-size: 12px; }
th { background-color: #f2f2f2; }
.text-left { text-align: left; }
.status-layak { color: green; font-weight: bold; }
.footer { margin-top: 30px; text-align: right; font-size: 12px; }
</style>
</head>
<body>
<div class="header">
<h2>Laporan Prioritas Penerima Bantuan</h2>
<p>Sistem Pendukung Keputusan Metode Fuzzy AHP</p>
</div>
<table>
<thead>
<tr>
<th>Rank</th>
<th>Nama Warga</th>
<th>NIK</th>
<th>RT/RW</th>
<th>Skor Akhir</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach($hasilRanking as $index => $h)
<tr>
<td>{{ $index + 1 }}</td>
<td class="text-left">{{ $h['nama'] }}</td>
<td>{{ $h['nik'] }}</td>
<td>{{ $h['rt_rw'] }}</td>
<td>{{ number_format($h['skor_akhir'] * 100, 2) }}%</td>
<td class="{{ $h['status'] == 'LAYAK' ? 'status-layak' : '' }}">
{{ $h['status'] }}
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="footer">
Dicetak pada: {{ date('d F Y H:i') }}
</div>
</body>
</html>