entity->name ?: ctrans('texts.untitled_account');
}
public function logo()
{
return strlen($this->entity->logo > 0) ? $this->entity->logo : 'https://www.invoiceninja.com/wp-content/uploads/2019/01/InvoiceNinja-Logo-Round-300x300.png';
}
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;
}
}