Simplified logic

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-12 16:23:09 +01:00
parent 4c350bd5a3
commit 225ab47b8e

View file

@ -21,21 +21,14 @@
{{-- $snipeSettings->brand = 3 = Logo + Text --}}
@if ($snipeSettings->brand == '3')
@if ($snipeSettings->email_logo!='')
<img style="max-height: 100px; vertical-align:middle;" src="{{ \Storage::disk('public')->url(e($snipeSettings->email_logo)) }}">
@endif
<img style="max-height: 100px; vertical-align:middle;" src="{{ \Storage::disk('public')->url(e($snipeSettings->email_logo)) }}">
<br><br>
{{ $snipeSettings->site_name }}
<br><br>
{{-- else if branding type is just logo --}}
@elseif ($snipeSettings->brand == '2')
@if ($snipeSettings->email_logo!='')
<img style="max-height: 100px; vertical-align:middle;" src="{{ \Storage::disk('public')->url(e($snipeSettings->email_logo)) }}">
@else
{{ $snipeSettings->site_name }}
@endif
<img style="max-height: 100px; vertical-align:middle;" src="{{ \Storage::disk('public')->url(e($snipeSettings->email_logo)) }}">
@endif
@else