worked on the new onboarding steps
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user