feat: fix HSE simper 500 error, enhance PG rejection, P2H wizard, simper renewal, QMA table UI, and nginx upload timeouts

This commit is contained in:
Ray1111-aa
2026-11-01 21:26:22 +07:00
parent bc6213d864
commit b83a8fa843
12 changed files with 1020 additions and 170 deletions
@@ -3,6 +3,7 @@
namespace App\Http\Controllers\Pg;
use App\Http\Controllers\Controller;
use App\Models\AdminActivityLog;
use App\Models\Gate;
use App\Models\SecurityGuard;
use App\Models\VehicleActivity;
@@ -268,6 +269,15 @@ class GateInspectionController extends Controller
'validated_at' => Carbon::now(),
]);
return back()->with('success', "Aktivitas kendaraan {$activity->vehicle->code} telah ditolak.");
AdminActivityLog::record(
'reject',
'pos_gerbang',
"Penolakan perlintasan gerbang untuk kendaraan {$activity->vehicle?->code} (Driver: {$activity->driver?->name}). Alasan: {$activity->rejection_note}",
'vehicle_activity',
$activity->id,
$activity->transaction_no
);
return back()->with('success', "Aktivitas perlintasan kendaraan {$activity->vehicle->code} telah ditolak.");
}
}