diff --git a/resources/views/sp-letters/print.blade.php b/resources/views/sp-letters/print.blade.php index 2b2dace..0eb3f35 100644 --- a/resources/views/sp-letters/print.blade.php +++ b/resources/views/sp-letters/print.blade.php @@ -93,7 +93,12 @@ @foreach($violations as $v) {{ \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 ?? $v['description'] ?? '-' }} + + {{ \App\Models\Violation::with('violationType')->find($v['id'] ?? null)?->violationType?->name ?? '-' }} + @if (! empty($v['description'])) +
{{ $v['description'] }}
+ @endif + {{ $v['points'] ?? 0 }} @endforeach