From 0f8171e3c134126e65298e3308832ba2091fe69b Mon Sep 17 00:00:00 2001 From: Novy San87 Date: Wed, 26 Aug 2026 11:39:44 +0700 Subject: [PATCH] =?UTF-8?q?fix(tatib):=20jenis=20pelanggaran=20di=20PDF=20?= =?UTF-8?q?SP=20tampil=20'-'=20jika=20pelanggaran=20sudah=20dihapus=20?= =?UTF-8?q?=E2=80=94=20pakai=20withTrashed()=20agar=20snapshot=20SP=20teta?= =?UTF-8?q?p=20menampilkan=20nama=20jenis=20pelanggaran?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/sp-letters/print.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/sp-letters/print.blade.php b/resources/views/sp-letters/print.blade.php index 003c858..b724159 100644 --- a/resources/views/sp-letters/print.blade.php +++ b/resources/views/sp-letters/print.blade.php @@ -98,7 +98,7 @@ {{ \Carbon\Carbon::parse($v['violation_date'] ?? now())->setTimezone('Asia/Jakarta')->locale('id')->isoFormat('dddd, DD MMMM Y') }} - {{ \App\Models\Violation::with('violationType')->find($v['id'] ?? null)?->violationType?->name ?? '-' }} + {{ \App\Models\Violation::withTrashed()->with('violationType')->find($v['id'] ?? null)?->violationType?->name ?? '-' }} @if (! empty($v['description']))
{{ $v['description'] }}
@endif