|
|
|
@ -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 { |
|
|
|
|