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