public function getFormattedNameAttribute(): string
    {
        $nameField = \Config::get('membership.users.name_column');

        if (!$this->primary_group_id) {
            return $this->{$nameField};
        }

        return $this->primaryGroup->open_tag . $this->{$nameField} . $this->primaryGroup->close_tag;
    }