DONE: remove verified by ajk, fix bug on pagination, improve UI

This commit is contained in:
ISMAIL MASSERAN
2026-04-27 12:06:54 +08:00
parent bd2306b073
commit 4425fa6176
20 changed files with 77081 additions and 535 deletions
@@ -96,9 +96,14 @@ class AttendanceController extends Controller
$voter = Voter::findOrFail($id);
$voter->fill($request->only(['name', 'no_kp', 'no_anggota', 'unit', 'kehadiran']));
// Skip admin verification phase for Fizikal.
// When Fizikal is selected and (optionally) the counter gate code is valid, we auto-verify.
// For non-Fizikal attendance, keep this field cleared.
if ((int) $voter->kehadiran === 1) {
$voter->fizikal_registration_verified_at = null;
}
$voter->fizikal_registration_verified_at = now();
} else {
$voter->fizikal_registration_verified_at = null;
}
$voter->save();