mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fix check for snipeSettings
This commit is contained in:
parent
ff3a50e3f5
commit
887dcc7bbc
|
@ -2,7 +2,7 @@
|
|||
{{-- Header --}}
|
||||
@slot('header')
|
||||
@component('mail::header', ['url' => config('app.url')])
|
||||
@if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
|
||||
@if (($snipeSettings !== null) && ($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
|
||||
|
||||
@if ($snipeSettings->brand == '3')
|
||||
@if ($snipeSettings->logo!='')
|
||||
|
@ -38,13 +38,13 @@ Snipe-IT
|
|||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
@if($snipeSettings::setupCompleted())
|
||||
@if($snipeSettings !== null && $snipeSettings::setupCompleted())
|
||||
© {{ date('Y') }} {{ $snipeSettings->site_name }}. All rights reserved.
|
||||
@else
|
||||
© {{ date('Y') }} Snipe-it. All rights reserved.
|
||||
@endif
|
||||
|
||||
@if ($snipeSettings->privacy_policy_link!='')
|
||||
@if ($snipeSettings !== null && $snipeSettings->privacy_policy_link!='')
|
||||
<a href="{{ $snipeSettings->privacy_policy_link }}">{{ trans('admin/settings/general.privacy_policy') }}</a>ldfkgjg
|
||||
@endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue