customer_id ? $this->customer->name.' ('.$this->customer->email.')' : '-'; } public function projectLink() { return link_to_route('projects.show', $this->name, [$this->id]); } public function status() { return ProjectStatus::getNameById($this->entity->status_id); } }