From 1971cb56146d26228705cb64b56bf4269ff7739f Mon Sep 17 00:00:00 2001 From: farhantock Date: Thu, 14 Dec 2023 10:34:16 +0700 Subject: [PATCH] update filter --- app/Http/Controllers/DashboardBoDController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/DashboardBoDController.php b/app/Http/Controllers/DashboardBoDController.php index cabc763..81c8830 100644 --- a/app/Http/Controllers/DashboardBoDController.php +++ b/app/Http/Controllers/DashboardBoDController.php @@ -203,12 +203,11 @@ class DashboardBoDController extends Controller $year = $this->interpolateYear($year); $divisions = Divisi::whereNull('parent') ->where('company_id', $company_id) + ->whereNull('parent') ->get(); - $divisions = Divisi::whereNull('parent')->get(); foreach ($divisions as $index => $division) { - $scheduleData = new Collection(); $behindSchedule = $warning = $onSchedule = 0;