From 97b69e42f11ff7172c0489d62711a327853e454a Mon Sep 17 00:00:00 2001 From: Wahyudin Date: Tue, 13 Oct 2026 15:41:33 +0700 Subject: [PATCH] style: remove stat cards from verification logs page --- .../Pg/VerificationLogController.php | 16 +-------- .../views/pg/verification_logs.blade.php | 34 ------------------- 2 files changed, 1 insertion(+), 49 deletions(-) diff --git a/app/Http/Controllers/Pg/VerificationLogController.php b/app/Http/Controllers/Pg/VerificationLogController.php index 1afc198..26353a0 100644 --- a/app/Http/Controllers/Pg/VerificationLogController.php +++ b/app/Http/Controllers/Pg/VerificationLogController.php @@ -78,24 +78,10 @@ class VerificationLogController extends Controller }); } - // Data Statistik Ringkas untuk Admin PG - $totalApproved = VehicleActivity::where('validation_status', 'approved')->count(); - $totalRejected = VehicleActivity::where('validation_status', 'rejected')->count(); - $totalPending = VehicleActivity::where('validation_status', 'pending')->count(); - $todayInspections = VehicleActivity::whereDate('recorded_at', Carbon::today())->count(); - $activities = $query->paginate(20)->withQueryString(); $gates = Gate::where('is_active', true)->orderBy('name')->get(); $guards = SecurityGuard::orderBy('name')->get(); - return view('pg.verification_logs', compact( - 'activities', - 'gates', - 'guards', - 'totalApproved', - 'totalRejected', - 'totalPending', - 'todayInspections' - )); + return view('pg.verification_logs', compact('activities', 'gates', 'guards')); } } diff --git a/resources/views/pg/verification_logs.blade.php b/resources/views/pg/verification_logs.blade.php index 2904273..0f090ef 100644 --- a/resources/views/pg/verification_logs.blade.php +++ b/resources/views/pg/verification_logs.blade.php @@ -30,40 +30,6 @@ - -
- -
-
- {{ number_format($totalApproved, 0, ',', '.') }} -
-

DISETUJUI

-
- - -
-
- {{ number_format($totalRejected, 0, ',', '.') }} -
-

DITOLAK

-
- - -
-
- {{ number_format($totalPending, 0, ',', '.') }} -
-

MENUNGGU

-
- - -
-
- {{ number_format($todayInspections, 0, ',', '.') }} -
-

HARI INI

-
-