/** * @return string */ public function role() { return $this->entity->role && ($title = User::roleTitles($this->entity->role)) ? "<code>{$title}</code>" : '<span class="text-gray">' . trans('user::user.no_role') . '</span>'; }