Add account company logo for customer event emails.
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:
isaacclad
2026-07-12 20:07:55 +00:00
co-authored by Cursor
parent 407f1364fb
commit b5debd79c4
15 changed files with 377 additions and 36 deletions
@@ -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));