entity->name ?: ctrans('texts.untitled_account'); } public function address() { $str = ''; $company = $this->entity; if ($address1 = $company->address1) { $str .= e($address1) . '
'; } if ($address2 = $company->address2) { $str .= e($address2) . '
'; } if ($cityState = $this->getCityState()) { $str .= e($cityState) . '
'; } if ($country = $company->country) { $str .= e($country->name) . '
'; } if ($company->work_phone) { $str .= ctrans('texts.work_phone') . ": ". e($company->work_phone) .'
'; } if ($company->work_email) { $str .= ctrans('texts.work_email') . ": ". e($company->work_email) .'
'; } return $str; } }