From cd2997b674af626795afdd4d615e1391b1c7af91 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Tue, 15 Nov 2022 08:08:26 -0600 Subject: [PATCH] Determine if email_logo or logo setting needs to be used in the Forgot Password email --- .../views/vendor/notifications/email.blade.php | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/resources/views/vendor/notifications/email.blade.php b/resources/views/vendor/notifications/email.blade.php index 986beb9c83..0147ef40d7 100644 --- a/resources/views/vendor/notifications/email.blade.php +++ b/resources/views/vendor/notifications/email.blade.php @@ -73,16 +73,26 @@ $style = [ @if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted())) + @php + $logo = ''; + if ($snipeSettings->logo != ''){ + $logo = $snipeSettings->logo; + } + + if ($snipeSettings->email_logo != ''){ + $logo = $snipeSettings->email_logo; + } + @endphp @if ($snipeSettings->brand == '3') - @if ($snipeSettings->logo!='') - + @if ($logo!='') + @endif {{ $snipeSettings->site_name }} @elseif ($snipeSettings->brand == '2') - @if ($snipeSettings->logo!='') - + @if ($logo!='') + @endif @else {{ $snipeSettings->site_name }}