Checks if settings let URL's be shown in email notifications

This commit is contained in:
Ivan Nieto Vivanco 2022-11-15 10:55:54 -06:00
parent cd2997b674
commit 7cc8b39863

View file

@ -1,13 +1,18 @@
@component('mail::layout')
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url')])
{{-- Check that the $snipeSettings variable is set, images are set to be shown, and setup is complete --}}
@if (isset($snipeSettings) && ($snipeSettings::setupCompleted()))
@if ($snipeSettings->show_url_in_email=='1' )
@component('mail::header', ['url' => config('app.url')])
@else
@component('mail::header', ['url' => ''])
@endif
{{-- Show images in email! --}}
@if (($snipeSettings->show_images_in_email=='1' ) && (($snipeSettings->brand == '3') || ($snipeSettings->brand == '2')))