|
|
|
@ -319,8 +319,12 @@ class DashboardBoDController extends Controller
|
|
|
|
|
|
|
|
|
|
$project->pm = User::find($project->pm_id); |
|
|
|
|
/* $project->header = Activity::where('proyek_id', $project->id)->where('version_gantt_id', $lastGantt['last_gantt_id'])->whereNull('parent_id')->first(); */ |
|
|
|
|
$project->scurve = MasterFunctionsHelper::getSCurve($project->id); |
|
|
|
|
$project->manPowers = UserToVersionGantt::where('version_gantt_id', $lastGantt['last_gantt_id'])->count(); |
|
|
|
|
if(!isset($lastGantt['last_gantt_id'])){ |
|
|
|
|
$project->manPowers = 0; |
|
|
|
|
} else { |
|
|
|
|
$project->manPowers = UserToVersionGantt::where('version_gantt_id', $lastGantt['last_gantt_id'])->count(); |
|
|
|
|
$project->scurve = MasterFunctionsHelper::getSCurve($project->id); |
|
|
|
|
} |
|
|
|
|
$project->lastGanttId = MasterFunctionsHelper::getLatestGantt($project->id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|