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