entity->created_at)); } public function createdAtDate() { return Utils::dateToString($this->entity->created_at); } public function user() { if ($this->entity->is_system) { return '' . trans('texts.system') . ''; } else { return $this->entity->user->getDisplayName(); } } public function notes() { if ($this->entity->notes) { return trans('texts.notes_' . $this->entity->notes); } elseif (in_array($this->entity->activity_type_id, [ACTIVITY_TYPE_EMAIL_INVOICE, ACTIVITY_TYPE_EMAIL_QUOTE])) { return trans('texts.initial_email'); } else { return ''; } } }