Skip to content

Commit fc45494

Browse files
committed
asset for mail image
1 parent 5c4a91d commit fc45494

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

config/expiry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203

204204
'send-escalation' => env('EXPIRY_SEND_ESCALATION', true),
205205
'send-escalation-days-before' => env('EXPIRY_SEND_ESCALATION_DAYS_BEFORE', 7),
206-
'send-escalation-copy' => env('EXPIRY_SEND_ESCALATION_COPY', '[email protected]'),
206+
'send-escalation-copy' => env('EXPIRY_SEND_ESCALATION_COPY', '[email protected]'),
207207
'panel_path' => env('EXPIRY_PANEL_PATH', 'press'),
208208
'logo_url' => env('LOGO_URL', 'https://moox.org/img/logo.png'),
209209

packages/expiry/resources/views/emails/escalated_expiries.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<div class="container">
100100
<!-- Header with Logo -->
101101
<div class="logo">
102-
<img src="{{ config('expiry.logo_url') }}" alt="Company Logo" class="w-24 h-auto">
102+
<img src="{{ $logoUrl }}" alt="Company Logo" class="w-24 h-auto">
103103
</div>
104104
<h1>{{ __('core::expiry.escalated_entries_in_expiry_dashboard') }}</h1>
105105
<h4>{{ __('core::expiry.following_escalated_entries') }}</h4>

packages/expiry/src/Mail/EscalatedExpiriesMail.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ public function __construct(array $entries, string $panelPath)
2222

2323
public function build()
2424
{
25+
$logoPath = config('expiry.logo_url');
26+
$logoUrl = asset($logoPath);
27+
2528
return $this->subject('Eskalierte Einträge in den Ablaufdaten')
2629
->view('expiry::emails.escalated_expiries')
2730
->with([
2831
'escalatedEntries' => $this->entries['escalatedEntries'],
2932
'panelPath' => $this->panelPath,
33+
'logoUrl' => $logoUrl,
3034
]);
3135
}
3236
}

0 commit comments

Comments
 (0)