diff --git a/resources/views/sp-letters/print.blade.php b/resources/views/sp-letters/print.blade.php index 93e972d..2b2dace 100644 --- a/resources/views/sp-letters/print.blade.php +++ b/resources/views/sp-letters/print.blade.php @@ -93,7 +93,7 @@ @foreach($violations as $v) {{ \Carbon\Carbon::parse($v['violation_date'] ?? now())->setTimezone('Asia/Jakarta')->locale('id')->isoFormat('dddd, DD MMMM Y') }} - {{ $v['description'] ?? '-' }} + {{ \App\Models\Violation::with('violationType')->find($v['id'] ?? null)?->violationType?->name ?? $v['description'] ?? '-' }} {{ $v['points'] ?? 0 }} @endforeach