mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add address2 to email footer
This commit is contained in:
parent
aa7448f0b4
commit
08b5e398ba
@ -22,6 +22,28 @@ class AccountPresenter extends Presenter
|
|||||||
return $this->entity->name ?: trans('texts.untitled_account');
|
return $this->entity->name ?: trans('texts.untitled_account');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function address()
|
||||||
|
{
|
||||||
|
$account = $this->entity;
|
||||||
|
|
||||||
|
$str = $account->address1 ?: '';
|
||||||
|
|
||||||
|
if ($account->address2 && $str) {
|
||||||
|
$str .= ', ';
|
||||||
|
}
|
||||||
|
|
||||||
|
$str .= $account->address2;
|
||||||
|
|
||||||
|
if ($account->getCityState() && $str) {
|
||||||
|
$str .= ' - ';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $str . $account->getCityState();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -63,15 +63,8 @@
|
|||||||
|
|
||||||
@section('footer')
|
@section('footer')
|
||||||
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
||||||
{{ $account->address1 }}
|
{{ $account->present()->address }}
|
||||||
@if ($account->address1 && $account->getCityState())
|
|
||||||
-
|
|
||||||
@endif
|
|
||||||
{{ $account->getCityState() }}
|
|
||||||
@if ($account->address1 || $account->getCityState())
|
|
||||||
<br />
|
<br />
|
||||||
@endif
|
|
||||||
|
|
||||||
@if ($account->website)
|
@if ($account->website)
|
||||||
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
||||||
@endif
|
@endif
|
||||||
|
@ -63,15 +63,8 @@
|
|||||||
|
|
||||||
@section('footer')
|
@section('footer')
|
||||||
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
<p style="color: #A7A6A6; font-size: 13px; line-height: 18px; margin: 0 0 7px; padding: 0;">
|
||||||
{{ $account->address1 }}
|
{{ $account->present()->address }}
|
||||||
@if ($account->address1 && $account->getCityState())
|
|
||||||
-
|
|
||||||
@endif
|
|
||||||
{{ $account->getCityState() }}
|
|
||||||
@if ($account->address1 || $account->getCityState())
|
|
||||||
<br />
|
<br />
|
||||||
@endif
|
|
||||||
|
|
||||||
@if ($account->website)
|
@if ($account->website)
|
||||||
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
<strong><a href="{{ $account->present()->website }}" style="color: #A7A6A6; text-decoration: none; font-weight: bold; font-size: 10px;">{{ $account->website }}</a></strong>
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user