159 lines
4.7 KiB
PHP
159 lines
4.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Laporan Hasil Seleksi</title>
|
|
<style>
|
|
/* 1. SETUP HALAMAN */
|
|
body {
|
|
font-family: "Times New Roman", Times, serif;
|
|
font-size: 12px;
|
|
margin: 0; padding: 10px;
|
|
}
|
|
|
|
/* 2. STYLE KOP SURAT (Menggunakan Tabel 3 Kolom) */
|
|
table.kop-tabel {
|
|
width: 100%;
|
|
border-bottom: 3px double #000;
|
|
padding-bottom: 5px;
|
|
margin-bottom: 20px;
|
|
border-collapse: collapse;
|
|
}
|
|
/* Menghilangkan garis pinggir khusus untuk tabel kop */
|
|
table.kop-tabel td {
|
|
border: none;
|
|
vertical-align: middle;
|
|
padding: 0;
|
|
}
|
|
.logo-pemkab {
|
|
width: 85px; /* Ukuran proporsional */
|
|
height: auto;
|
|
}
|
|
.kop-text h2 {
|
|
font-size: 14pt;
|
|
margin: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
.kop-text h1 {
|
|
font-size: 16pt;
|
|
margin: 2px 0;
|
|
text-transform: uppercase;
|
|
}
|
|
.kop-text p {
|
|
font-size: 10pt;
|
|
margin: 2px 0;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* 3. JUDUL LAPORAN */
|
|
.judul-laporan {
|
|
text-align: center;
|
|
margin-bottom: 25px;
|
|
}
|
|
.judul-laporan h3 {
|
|
font-size: 13pt;
|
|
text-decoration: underline;
|
|
margin-bottom: 5px;
|
|
text-transform: uppercase;
|
|
}
|
|
.judul-laporan p {
|
|
font-size: 11pt;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 4. TABEL DATA HASIL SELEKSI */
|
|
table.data-tabel {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
}
|
|
table.data-tabel th, table.data-tabel td {
|
|
border: 1px solid #000;
|
|
padding: 8px;
|
|
text-align: center;
|
|
word-wrap: break-word;
|
|
}
|
|
table.data-tabel th {
|
|
background-color: #f2f2f2;
|
|
text-transform: uppercase;
|
|
font-size: 10pt;
|
|
}
|
|
table.data-tabel tr:nth-child(even) { background-color: #fafafa; }
|
|
|
|
/* Mencegah tabel terpotong jelek di antar halaman */
|
|
table.data-tabel tr { page-break-inside: avoid !important; }
|
|
|
|
/* 5. STYLE TANDA TANGAN */
|
|
.signature-box {
|
|
margin-top: 100px; /* Jarak diperbesar agar tidak terlalu mepet atas */
|
|
float: right;
|
|
width: 250px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<table class="kop-tabel">
|
|
<tr>
|
|
<td style="width: 15%; text-align: center;">
|
|
<img src="{{ public_path('assetdashboard/img/logo-bondowoso.png') }}" class="logo-pemkab">
|
|
</td>
|
|
|
|
<td style="width: 70%; text-align: center;">
|
|
<div class="kop-text">
|
|
<h2>Pemerintah Kabupaten Bondowoso</h2>
|
|
<h2>Kecamatan Binakal</h2>
|
|
<h1>Desa Bendelan</h1>
|
|
<p>Jln. Tancak Kembar No. 007 Kode Pos 68251</p>
|
|
</div>
|
|
</td>
|
|
|
|
<td style="width: 15%;"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div class="judul-laporan">
|
|
<h3>Laporan Hasil Seleksi Penerima Bantuan Sosial</h3>
|
|
<p>Periode: {{ $periode->nama_periode }}</p>
|
|
</div>
|
|
|
|
<table class="data-tabel">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 25px;">Rank</th>
|
|
<th style="width: 180px;">Nama Warga</th>
|
|
<th style="width: 120px;">NIK</th>
|
|
<th>Skor Akhir</th>
|
|
<th style="width: 120px;">Keputusan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($results as $res)
|
|
<tr>
|
|
<td style="font-weight: bold;">{{ $res->ranking }}</td>
|
|
<td style="text-align: left;">{{ $res->warga->nama }}</td>
|
|
<td>{{ $res->warga->nik }}</td>
|
|
<td>{{ number_format($res->skor_akhir, 4) }}</td>
|
|
<td>
|
|
@if($res->status_keputusan == 'Layak' || $res->status_keputusan == 'Diterima')
|
|
<span style="font-weight: bold; color: green;">{{ $res->status_keputusan }}</span>
|
|
@else
|
|
{{ $res->status_keputusan }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="signature-box">
|
|
<p>Bendelan, {{ date('d F Y') }}</p>
|
|
<p>Kepala Desa Bendelan</p>
|
|
<br><br><br>
|
|
<p><b>( ____________________ )</b></p>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|