Show 'Valid until' for quotes in HTML emails

This commit is contained in:
Hillel Coren 2016-08-17 13:17:24 +03:00
parent 6675814f8d
commit 886d7f6e12
2 changed files with 14 additions and 6 deletions

View File

@ -22,7 +22,11 @@
<p class="left" style="line-height: 22px; margin: 0; padding: 2px 0 0;">
@if ($invoice->due_date)
<span style="font-size: 11px; color: #8f8d8e;">
{{ strtoupper(trans('texts.due_by', ['date' => $account->formatDate($invoice->due_date)])) }}
@if ($invoice->isQuote())
{{ strtoupper(trans('texts.valid_until')) }} {{ $account->formatDate($invoice->due_date) }}
@else
{{ strtoupper(trans('texts.due_by', ['date' => $account->formatDate($invoice->due_date)])) }}
@endif
</span><br />
@endif
<span style="font-size: 18px;">

View File

@ -22,7 +22,11 @@
<p class="left" style="line-height: 22px; margin: 3px 0 0; padding: 0;">
@if ($invoice->due_date)
<span style="font-size: 11px; color: #8f8d8e;">
{{ strtoupper(trans('texts.due_by', ['date' => $account->formatDate($invoice->due_date)])) }}
@if ($invoice->isQuote())
{{ strtoupper(trans('texts.valid_until')) }} {{ $account->formatDate($invoice->due_date) }}
@else
{{ strtoupper(trans('texts.due_by', ['date' => $account->formatDate($invoice->due_date)])) }}
@endif
</span><br />
@endif
<span style="font-size: 19px; color: #FFFFFF;">