Total akumulasi poin pelanggaran: {{ $spLetter->total_points_at_time }} poin
-Daftar pelanggaran:
--
- @php $violations = is_array($spLetter->violations_included) ? $spLetter->violations_included : json_decode($spLetter->violations_included, true); @endphp
- @if($violations)
- @foreach($violations as $v)
-
- {{ $v['violation_date'] ?? '-' }} - {{ $v['description'] ?? '-' }} ({{ $v['points'] ?? 0 }} poin) - @endforeach - @endif -
Berikut daftar pelanggaran :
+ @php $violations = is_array($spLetter->violations_included) ? $spLetter->violations_included : json_decode($spLetter->violations_included, true); @endphp + @if($violations) +| Tanggal Pelanggaran | +Jenis Pelanggaran | +Point | +
|---|---|---|
| {{ \Carbon\Carbon::parse($v['violation_date'] ?? now())->format('d/m/Y') }} | +{{ $v['description'] ?? '-' }} | +{{ $v['points'] ?? 0 }} | +
| Total | +{{ array_sum(array_column($violations, 'points')) }} | +|