worked on the new onboarding steps

This commit is contained in:
Kwesi Banson
2024-01-31 20:40:33 +00:00
parent bc97f69748
commit 7a64019001
184 changed files with 11292 additions and 173 deletions

View File

@@ -17,6 +17,14 @@ class Client extends Model
$indicator_score = (count($current_indicator_count)/$general_indicators) * 100;
return number_format($indicator_score);
}
public function getOnboardingProgressStageAttribute($value){
$onboarding_stage = json_decode($value, true);
// $indicator_score = (count($current_indicator_count)/$general_indicators) * 100;
return $onboarding_stage[0];
}
*/
public function country_info(){
return $this->hasOne('App\Models\Country', 'alpha_2_code', 'country');