argument('hierarchy_id'); $hierarchy = HierarchyFtth::findOrFail($hierarchy_id); $project = Project::find($hierarchy->project_id); $data = MasterFunctionsHelper::calculateSCurveForProgressTree($hierarchy_id); $hierarchy->bobot_planning = 100; $hierarchy->progress =((int) end($data[0]['data']['percentageReal']) / (int) end($data[0]['data']['percentagePlan'])) * 100; $hierarchy->save(); } }