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