Browse Source

Merge pull request 'Change danger into overrun' (#96) from dev-wahyu into staging

Reviewed-on: ordo/adw-backend#96
pull/3/head
ibnu 1 year ago
parent
commit
87b602e882
  1. 2
      app/Http/Controllers/ProjectController.php

2
app/Http/Controllers/ProjectController.php

@ -274,7 +274,7 @@ class ProjectController extends Controller
$totalPlannedCost = array_sum(array_map('intval', array_column($data->toArray(), 'plannedCost')));
$totalActualCost = $data->sum('actualCost');
$manpowers = User::count();
$projectsOnDanger = Project::where('budget_health', 'danger')->count();
$projectsOnDanger = Project::where('budget_health', 'overrun')->count();
$projectPhases = ProjectPhase::orderBy('order', 'asc')->pluck('name');
$projectTypes = ProjectType::orderBy('id', 'asc')->pluck('name');
try {

Loading…
Cancel
Save