Changed to

This commit is contained in:
Hillel Coren 2017-04-20 13:11:42 +03:00
parent 7a448d5e81
commit 8ae95c90ba
4 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,7 @@ trait SendsEmails
$template .= "$message<p/>";
}
return $template . '$footer';
return $template . '$emailSignature';
}
/**

View File

@ -47,6 +47,7 @@ class TemplateService
$variables = [
'$footer' => $account->getEmailFooter(),
'$emailSignature' => $account->getEmailFooter(),
'$client' => $client->getDisplayName(),
'$account' => $account->getDisplayName(),
'$dueDate' => $account->formatDate($invoice->due_date),

View File

@ -146,7 +146,6 @@
<p>{{ trans('texts.template_help_1') }}</p>
<ul>
@foreach([
'footer',
'account',
'dueDate',
'invoiceDate',
@ -156,6 +155,7 @@
'firstName',
'invoice',
'quote',
'emailSignature',
'password',
'documents',
'viewLink',

View File

@ -15,6 +15,7 @@
var keys = {
'footer': {!! json_encode($account->getEmailFooter()) !!},
'emailSignature': {!! json_encode($account->getEmailFooter()) !!},
'account': "{{ $account->getDisplayName() }}",
'dueDate': "{{ $account->formatDate($account->getDateTime()) }}",
'invoiceDate': "{{ $account->formatDate($account->getDateTime()) }}",