fix: laporan rekap pakai snapshot student_class (kelas saat pelanggaran) — akurat walau siswa naik kelas/lulus

This commit is contained in:
Novy San87
2026-08-06 23:10:22 +07:00
parent 27e1e71fc9
commit 2b354e9e46
2 changed files with 5 additions and 5 deletions
@@ -159,7 +159,7 @@
<td>{{ $v->violation_date?->format('d/m/Y') }}</td>
<td>{{ $v->student?->nisn }}</td>
<td>{{ $v->student?->full_name }}</td>
<td>{{ $v->student?->class?->name }}</td>
<td>{{ $v->student_class ?: $v->student?->class?->name }}</td>
<td>
<div>{{ $v->violationType?->name }} <span style="color:#666">({{ $v->violationType?->category?->name ?? '-' }})</span></div>
@if ($v->description)