feat: fitur koreksi odometer, kamera scan qr unit, remember me 30 hari, dan strict route guard 403

This commit is contained in:
Ray1111-aa
2026-10-19 23:21:55 +07:00
parent d216322ac6
commit e08b81e0c2
32 changed files with 2232 additions and 189 deletions
+4 -1
View File
@@ -158,7 +158,10 @@ class Vehicle extends Model
*/
public function determineNextAllowedDirection(): string
{
$last = $this->latestActivity;
$last = $this->activities()
->whereNotIn('validation_status', ['cancelled', 'rejected'])
->latest('recorded_at')
->first();
if (!$last) {
return 'ANY';