belongsTo('App\Models\Account');
    }
    public function user()
    {
        return $this->belongsTo('App\Models\User');
    }
    public function client()
    {
        return $this->belongsTo('App\Models\Client')->withTrashed();
    }
    public function getPersonType()
    {
        return PERSON_CONTACT;
    }
    public function getName()
    {
        return $this->getDisplayName();
    }
    public function getDisplayName()
    {
        if ($this->getFullName()) {
            return $this->getFullName();
        } else {
            return $this->email;
        }
    }
    public function getFullName()
    {
        if ($this->first_name || $this->last_name) {
            return $this->first_name.' '.$this->last_name;
        } else {
            return '';
        }
    }
}