progress indicators, bug fixes, after a while

This commit is contained in:
Kwesi Banson
2023-12-13 12:13:47 +00:00
parent ea6d83e5d9
commit bc97f69748
1283 changed files with 1010757 additions and 7379 deletions

View File

@@ -10,6 +10,14 @@ class Client extends Model
public $table = "clients";
protected $appends = ['client_services'];
/*
public function getprogressIndicatorsAttribute($value){
$current_indicator_count = json_decode($value, true);
$general_indicators = Models\ClientIndicator::count();
$indicator_score = (count($current_indicator_count)/$general_indicators) * 100;
return number_format($indicator_score);
}
*/
public function country_info(){
return $this->hasOne('App\Models\Country', 'alpha_2_code', 'country');
}