Fixes for generic email templates

This commit is contained in:
David Bomba 2020-09-21 08:17:57 +10:00
parent 624f8db661
commit 0338a30a48
4 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,7 @@ class UserEmailChanged extends BaseMailerJob implements ShouldQueue
'button' => ctrans('texts.account_login'), 'button' => ctrans('texts.account_login'),
'signature' => $this->company->owner()->signature, 'signature' => $this->company->owner()->signature,
'logo' => $this->company->present()->logo(), 'logo' => $this->company->present()->logo(),
'settings' => $this->settings,
]; ];
} }
} }

View File

@ -84,6 +84,8 @@ class EntitySentObject
'button' => ctrans("texts.view_{$this->entity_type}"), 'button' => ctrans("texts.view_{$this->entity_type}"),
'signature' => $settings->email_signature, 'signature' => $settings->email_signature,
'logo' => $this->company->present()->logo(), 'logo' => $this->company->present()->logo(),
'settings' => $settings,
]; ];
} }
} }

View File

@ -84,6 +84,8 @@ class EntityViewedObject
'button' => ctrans("texts.view_{$this->entity_type}"), 'button' => ctrans("texts.view_{$this->entity_type}"),
'signature' => $settings->email_signature, 'signature' => $settings->email_signature,
'logo' => $this->company->present()->logo(), 'logo' => $this->company->present()->logo(),
'settings' => $settings,
]; ];
return $data; return $data;

View File

@ -76,6 +76,8 @@ class PaymentFailureObject
), ),
'signature' => $signature, 'signature' => $signature,
'logo' => $this->company->present()->logo(), 'logo' => $this->company->present()->logo(),
'settings' => $this->client->getMergedSettings(),
]; ];
return $data; return $data;