Skip to content

Commit

Permalink
asset for mail image
Browse files Browse the repository at this point in the history
  • Loading branch information
AzGasim committed Dec 9, 2024
1 parent 5c4a91d commit fc45494
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/expiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<div class="container">
<!-- Header with Logo -->
<div class="logo">
<img src="{{ config('expiry.logo_url') }}" alt="Company Logo" class="w-24 h-auto">
<img src="{{ $logoUrl }}" alt="Company Logo" class="w-24 h-auto">
</div>
<h1>{{ __('core::expiry.escalated_entries_in_expiry_dashboard') }}</h1>
<h4>{{ __('core::expiry.following_escalated_entries') }}</h4>
Expand Down
4 changes: 4 additions & 0 deletions packages/expiry/src/Mail/EscalatedExpiriesMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ public function __construct(array $entries, string $panelPath)

public function build()
{
$logoPath = config('expiry.logo_url');
$logoUrl = asset($logoPath);

return $this->subject('Eskalierte Einträge in den Ablaufdaten')
->view('expiry::emails.escalated_expiries')
->with([
'escalatedEntries' => $this->entries['escalatedEntries'],
'panelPath' => $this->panelPath,
'logoUrl' => $logoUrl,
]);
}
}

0 comments on commit fc45494

Please sign in to comment.