Browse Source

Change danger into overrun

pull/3/head
Wahyu Ramadhan 1 year ago
parent
commit
7ed4861ebb
  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