entity->first_name.' '.$this->entity->last_name; if (strlen($contact_name) > 1) { return $contact_name; } return $this->entity->client->present()->name(); } public function first_name() { return $this->entity->first_name ?? ''; } public function last_name() { return $this->entity->last_name ?? ''; } public function search_display() { return $this->name().' <'.$this->entity->email.'>' ?? ''; } public function phone() { return strlen($this->phone ?? '') > 1 ? $this->phone : ''; } public function email() { return strlen($this->email ?? '') > 1 ? $this->email : ''; } }