Add account company logo for customer event emails.
Deploy Ladill Events / deploy (push) Successful in 1m39s
Deploy Ladill Events / deploy (push) Successful in 1m39s
Upload logo in account settings and prefer it over Ladill product marks in event notification headers. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Services\Events;
|
||||
|
||||
use App\Support\AccountBranding;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
class EventEmailService
|
||||
@@ -129,6 +130,10 @@ class EventEmailService
|
||||
?string $replyToEmail = null,
|
||||
?string $replyToName = null,
|
||||
): bool {
|
||||
$brandingSettings = AccountBranding::forOwnerRef($ownerPublicId);
|
||||
$viewData['logoUrl'] = AccountBranding::emailLogoUrl($brandingSettings);
|
||||
$viewData['companyName'] = AccountBranding::companyName($brandingSettings);
|
||||
|
||||
$html = View::make($view, $viewData)->render();
|
||||
$text = strip_tags(str_replace(['<br>', '<br/>', '<br />'], "\n", $html));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user