diff --git a/config/mail.php b/config/mail.php index 63112a1c6a..b01d6b5c7a 100644 --- a/config/mail.php +++ b/config/mail.php @@ -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', + ], + ], + ]; diff --git a/public/images/logo-fixitclinic.jpg b/public/images/logo-fixitclinic.jpg new file mode 100644 index 0000000000..88174f909f Binary files /dev/null and b/public/images/logo-fixitclinic.jpg differ diff --git a/resources/views/vendor/mail/html/message.blade.php b/resources/views/vendor/mail/html/message.blade.php index 730128229b..b607f20b6d 100755 --- a/resources/views/vendor/mail/html/message.blade.php +++ b/resources/views/vendor/mail/html/message.blade.php @@ -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')]) -Restarters.net +{{ $logoConfig['alt'] }} @endcomponent @endslot