@ -188,6 +188,8 @@ class Activity extends Model
return 0;
if(!$dataPlan = AssignMaterial::where('activity_id', $this->id)->get())
if($dataPlan->isEmpty())
if($dataPlan[0]->status_activity == 'done')
return 100;
return $this->persentase_progress;