Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,19 @@
],
],

'logos' => [
'fixitclinic' => [
'file' => 'logo-fixitclinic.jpg',
'width' => 147,
'height' => 60,
'alt' => 'iFixit Community',
],
'base' => [
'file' => 'restart_logo_complete_black1.png',
'width' => 147,
'height' => 40,
'alt' => 'Restarters.net',
],
],

];
Binary file added public/images/logo-fixitclinic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion resources/views/vendor/mail/html/message.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
@component('mail::layout')
{{-- Header --}}
@slot('header')
@php
$instance = config('app.instance', 'base');
$logoConfig = config("mail.logos.{$instance}", config('mail.logos.base'));
@endphp
@component('mail::header', ['url' => config('app.url')])
<img src="{{ asset('/images/restart_logo_complete_black1.png')}}" width="147" height="40" alt="Restarters.net">
<img src="{{ asset("/images/{$logoConfig['file']}") }}" width="{{ $logoConfig['width'] }}" height="{{ $logoConfig['height'] }}" alt="{{ $logoConfig['alt'] }}">
@endcomponent
@endslot

Expand Down