From 1a76385cf03583f3984ee90209594d0aa79246f7 Mon Sep 17 00:00:00 2001 From: Novy San87 Date: Wed, 26 Aug 2026 10:54:05 +0700 Subject: [PATCH] =?UTF-8?q?Revert=20"style(tatib):=20PDF=20kartu=20pelangg?= =?UTF-8?q?aran=20siswa=20(/students)=20=E2=80=94=20margin=20atas=208mm?= =?UTF-8?q?=E2=86=926mm,=20font=20isi=20diseragamkan=2012pt=20(identitas,?= =?UTF-8?q?=20rekap,=20tabel=20riwayat,=20ttd,=20footer),=20judul=2014pt,?= =?UTF-8?q?=20tetap=20A4=20portrait"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit bc4b48163153a7884812b9602dfdf75e9029a301. --- resources/views/students/_riwayat.blade.php | 8 +++--- resources/views/students/pdf-card.blade.php | 32 ++++++++++----------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/resources/views/students/_riwayat.blade.php b/resources/views/students/_riwayat.blade.php index c762524..d2605a7 100644 --- a/resources/views/students/_riwayat.blade.php +++ b/resources/views/students/_riwayat.blade.php @@ -6,8 +6,8 @@ No - Tanggal - Jenis Pelanggaran + Tanggal + Jenis Pelanggaran Poin Sanksi @@ -16,11 +16,11 @@ @foreach($items as $i => $v) {{ $i + 1 }} - {{ \Carbon\Carbon::parse($v->violation_date)->format('d/m/Y') }} + {{ \Carbon\Carbon::parse($v->violation_date)->locale('id')->translatedFormat('l, d/m/Y') }} {{ $v->violationType?->name ?? '—' }} @if($v->description) -
{{ $v->description }}
+
{{ $v->description }}
@endif +{{ $v->points }} diff --git a/resources/views/students/pdf-card.blade.php b/resources/views/students/pdf-card.blade.php index 5145a4b..b52d1a3 100644 --- a/resources/views/students/pdf-card.blade.php +++ b/resources/views/students/pdf-card.blade.php @@ -7,7 +7,7 @@ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'DejaVu Sans', sans-serif; - font-size: 12pt; + font-size: 11px; color: #1e293b; line-height: 1.5; } @@ -31,7 +31,7 @@ text-align: center; background: #0f766e; color: #ffffff; - font-size: 14pt; + font-size: 13px; font-weight: bold; padding: 7px 0; border-radius: 5px; @@ -39,7 +39,7 @@ margin-bottom: 14px; } .section-title { - font-size: 12pt; + font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; @@ -49,7 +49,7 @@ margin: 14px 0 7px 0; } .sub-title { - font-size: 12pt; + font-size: 9.5px; font-weight: bold; color: #0f766e; margin: 8px 0 4px 0; @@ -60,7 +60,7 @@ } table.identitas td { padding: 4px 6px; - font-size: 12pt; + font-size: 11px; } table.identitas td.label { width: 28%; @@ -85,12 +85,12 @@ width: 33.33%; } .kartu-poin .angka { - font-size: 12pt; + font-size: 15px; font-weight: bold; color: #0f766e; } .kartu-poin .kecil { - font-size: 12pt; + font-size: 8.5px; text-transform: uppercase; letter-spacing: 1px; color: #64748b; @@ -103,7 +103,7 @@ table.riwayat th { background: #0f766e; color: #fff; - font-size: 12pt; + font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 4px; @@ -114,7 +114,7 @@ table.riwayat td { border: 1px solid #e2e8f0; padding: 3px 5px; - font-size: 12pt; + font-size: 9px; vertical-align: top; } table.riwayat tr:nth-child(even) td { @@ -124,14 +124,14 @@ display: inline-block; padding: 2px 9px; border-radius: 8px; - font-size: 12pt; + font-size: 9.5px; font-weight: bold; color: #fff; background: #dc2626; } .ttd { margin-top: 14px; - font-size: 12pt; + font-size: 11px; color: #1e293b; text-align: left; padding-left: 118mm; @@ -145,17 +145,17 @@ .ttd-nama { font-weight: bold; text-decoration: underline; - font-size: 12pt; + font-size: 12px; margin-top: 4px; } .ttd-nip { - font-size: 12pt; + font-size: 10px; color: #475569; margin-top: 2px; } .footer-note { margin-top: 16px; - font-size: 12pt; + font-size: 8.5px; color: #94a3b8; border-top: 1px solid #e2e8f0; padding-top: 6px; @@ -170,7 +170,7 @@ -
+
{{ strtoupper($school['name']) }}
@@ -241,7 +241,7 @@ @endif @if($nextSpThreshold) -
+
* Poin menuju SP berikutnya ({{ $nextSpThreshold->name }}) : {{ $nextSpThreshold->min_points - $totalPoints }} poin lagi.
@endif