Browse Source

Fix project count

pull/3/head
Wahyu Ramadhan 1 year ago
parent
commit
c5fda7e5e3
  1. 4
      app/Http/Controllers/DashboardBoDController.php

4
app/Http/Controllers/DashboardBoDController.php

@ -140,10 +140,10 @@ class DashboardBoDController extends Controller
try {
if($selisihProgress > 0 && $selisihProgress <= 5)
$return['warning'] += 1;
elseif($selisihProgress > 5 && $selisihProgress <= 100)
$return['behind-schedule'] += 1;
elseif($selisihProgress == 0)
$return['on-schedule'] += 1;
else
$return['behind-schedule'] += 1;
} catch (\Error $e) {
return response()->json(['msg' => $e->getMessage(), 'data' => $project], 200);
}

Loading…
Cancel
Save