442 lines
12 KiB
PHP
442 lines
12 KiB
PHP
@php
|
|
$portalUrl = route('public.student-self-service.index');
|
|
$qrUrl = 'https://api.qrserver.com/v1/create-qr-code/?size=180x180&margin=8&data=' . urlencode($portalUrl);
|
|
@endphp
|
|
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Daftar Kode Akses Self Servis - {{ $class->name }}</title>
|
|
<style>
|
|
body {
|
|
font-family: "Times New Roman", Times, serif;
|
|
color: #111827;
|
|
margin: 24px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.document {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.top-actions {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.print-button {
|
|
background: #0f172a;
|
|
color: #ffffff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 10px 16px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.letterhead {
|
|
text-align: center;
|
|
border-bottom: 3px solid #111827;
|
|
padding-bottom: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.letterhead-small {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.18em;
|
|
}
|
|
|
|
.letterhead-title {
|
|
margin-top: 6px;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.letterhead-subtitle {
|
|
margin-top: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.document-title {
|
|
text-align: center;
|
|
margin: 18px 0 14px;
|
|
}
|
|
|
|
.document-title h1 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
text-decoration: underline;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.document-title p {
|
|
margin: 6px 0 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.meta-box {
|
|
border: 1px solid #374151;
|
|
padding: 12px 14px;
|
|
margin-bottom: 16px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.access-panel {
|
|
display: table;
|
|
width: 100%;
|
|
border: 1px solid #374151;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.access-panel-row {
|
|
display: table-row;
|
|
}
|
|
|
|
.access-panel-main,
|
|
.access-panel-qr {
|
|
display: table-cell;
|
|
vertical-align: top;
|
|
padding: 16px 18px;
|
|
}
|
|
|
|
.access-panel-main {
|
|
border-right: 1px solid #374151;
|
|
}
|
|
|
|
.access-panel-qr {
|
|
width: 220px;
|
|
text-align: center;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.portal-badge {
|
|
display: inline-block;
|
|
border: 1px solid #d1d5db;
|
|
padding: 4px 10px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.14em;
|
|
margin-bottom: 10px;
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.portal-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.portal-description {
|
|
font-size: 12px;
|
|
color: #374151;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.portal-link-box {
|
|
margin-top: 14px;
|
|
border: 1px solid #d1d5db;
|
|
background: #ffffff;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.portal-link-label {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
color: #4b5563;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.portal-url {
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.portal-url a {
|
|
color: #111827;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.qr-card {
|
|
display: inline-block;
|
|
background: #ffffff;
|
|
border: 1px solid #d1d5db;
|
|
padding: 10px;
|
|
}
|
|
|
|
.qr-title {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
color: #374151;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.qr-image {
|
|
width: 150px;
|
|
height: 150px;
|
|
object-fit: contain;
|
|
display: block;
|
|
}
|
|
|
|
.qr-caption {
|
|
margin-top: 10px;
|
|
font-size: 11px;
|
|
color: #4b5563;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.meta-grid {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.meta-grid td {
|
|
padding: 2px 0;
|
|
vertical-align: top;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.meta-grid .label {
|
|
width: 160px;
|
|
}
|
|
|
|
.notice {
|
|
margin-bottom: 14px;
|
|
font-size: 12px;
|
|
color: #374151;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
border: 1px solid #111827;
|
|
padding: 8px 10px;
|
|
vertical-align: middle;
|
|
font-size: 12px;
|
|
}
|
|
|
|
th {
|
|
text-align: center;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
td.center {
|
|
text-align: center;
|
|
}
|
|
|
|
.code {
|
|
font-family: "Courier New", Courier, monospace;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.16em;
|
|
text-align: center;
|
|
}
|
|
|
|
.notes {
|
|
margin-top: 18px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.notes-title {
|
|
font-weight: 700;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.notes ol {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.signature {
|
|
width: 100%;
|
|
margin-top: 28px;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.signature td {
|
|
width: 50%;
|
|
vertical-align: top;
|
|
font-size: 12px;
|
|
border: none;
|
|
}
|
|
|
|
.signature-box {
|
|
text-align: center;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.signature-space {
|
|
height: 64px;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 18px;
|
|
font-size: 11px;
|
|
color: #4b5563;
|
|
text-align: center;
|
|
}
|
|
|
|
@media print {
|
|
body {
|
|
margin: 12mm;
|
|
}
|
|
|
|
.no-print {
|
|
display: none !important;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="document">
|
|
<div class="top-actions no-print">
|
|
<button type="button" class="print-button" onclick="window.print()">Cetak / Simpan PDF</button>
|
|
</div>
|
|
|
|
<div class="letterhead">
|
|
<div class="letterhead-small">Dokumen Internal Sekolah</div>
|
|
<div class="letterhead-title">Database Kesiswaan</div>
|
|
<div class="letterhead-subtitle">Lembar Distribusi Kode Akses Self Servis Siswa</div>
|
|
</div>
|
|
|
|
<div class="document-title">
|
|
<h1>Daftar Kode Akses Self Servis</h1>
|
|
<p>Digunakan untuk proses pelengkapan data siswa secara mandiri melalui portal sekolah.</p>
|
|
</div>
|
|
|
|
<div class="meta-box">
|
|
<table class="meta-grid">
|
|
<tr>
|
|
<td class="label">Kelas</td>
|
|
<td>: {{ $class->name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Tahun Angkatan</td>
|
|
<td>: {{ $class->academicYear?->name ?: '-' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Program Keahlian</td>
|
|
<td>: {{ $class->department?->name ?: '-' }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Tanggal Cetak</td>
|
|
<td>: {{ now()->format('d-m-Y H:i') }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Jumlah Siswa</td>
|
|
<td>: {{ $students->count() }} siswa</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Kode Baru Tergenerate</td>
|
|
<td>: {{ $generatedCount }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="access-panel">
|
|
<div class="access-panel-row">
|
|
<div class="access-panel-main">
|
|
<div class="portal-badge">Akses Digital Siswa</div>
|
|
<div class="portal-title">Portal Self Servis Siswa</div>
|
|
<div class="portal-description">
|
|
Gunakan lembar ini sebagai panduan akses awal ke portal self servis siswa. Siswa atau orang tua/wali dapat membuka portal menggunakan tautan di bawah atau scan QR di samping, lalu masuk dengan <strong>NIS/NISN</strong> dan <strong>kode akses</strong> masing-masing.
|
|
</div>
|
|
|
|
<div class="portal-link-box">
|
|
<div class="portal-link-label">Link Portal Self Servis</div>
|
|
<div class="portal-url">
|
|
<a href="{{ $portalUrl }}">{{ $portalUrl }}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="access-panel-qr">
|
|
<div class="qr-title">Scan QR Portal</div>
|
|
<div class="qr-card">
|
|
<img src="{{ $qrUrl }}" alt="QR Portal Self Servis" class="qr-image">
|
|
</div>
|
|
<div class="qr-caption">Arahkan kamera ponsel untuk membuka portal self servis siswa.</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 42px;">No</th>
|
|
<th>Nama Siswa</th>
|
|
<th style="width: 120px;">NIS</th>
|
|
<th style="width: 140px;">NISN</th>
|
|
<th style="width: 170px;">Kode Akses</th>
|
|
<th style="width: 120px;">Tanda Terima</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($students as $index => $student)
|
|
<tr>
|
|
<td class="center">{{ $index + 1 }}</td>
|
|
<td>{{ $student->full_name }}</td>
|
|
<td class="center">{{ $student->student_number ?: '-' }}</td>
|
|
<td class="center">{{ $student->nisn ?: '-' }}</td>
|
|
<td class="code">{{ $student->self_service_access_code ?: '-' }}</td>
|
|
<td></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="notes">
|
|
<div class="notes-title">Catatan Penggunaan:</div>
|
|
<ol>
|
|
<li>Siswa masuk ke portal self servis menggunakan NIS/NISN dan kode akses pada lembar ini.</li>
|
|
<li>Siswa juga dapat membuka portal dengan scan QR atau mengetik link portal yang tercantum di dokumen ini.</li>
|
|
<li>Jika kode akses hilang atau perlu diganti, admin sekolah dapat melakukan generate ulang dari panel admin.</li>
|
|
<li>Disarankan wali kelas memastikan setiap siswa menerima kode akses yang benar.</li>
|
|
</ol>
|
|
</div>
|
|
|
|
<table class="signature">
|
|
<tr>
|
|
<td>
|
|
<div class="signature-box">
|
|
Mengetahui,<br>
|
|
Admin Kesiswaan
|
|
<div class="signature-space"></div>
|
|
(........................................)
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="signature-box">
|
|
Diterima oleh,<br>
|
|
Wali Kelas / Petugas
|
|
<div class="signature-space"></div>
|
|
(........................................)
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div class="footer">
|
|
Dokumen ini digenerate dari sistem Database Kesiswaan · Export kode akses self servis siswa per kelas
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|