progress indicators, bug fixes, after a while
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user