Skip to content

A free open source IT asset/license management system

remove unnecessary spacing

Godfrey M440e969f5229
diff --git a/resources/views/mail/markdown/checkout-accessory.blade.php b/resources/views/mail/markdown/checkout-accessory.blade.php
index 0504bbeca2..7b7572e48d 100644
--- a/resources/views/mail/markdown/checkout-accessory.blade.php
+++ b/resources/views/mail/markdown/checkout-accessory.blade.php
@@ -1,5 +1,5 @@
@component('mail::message')
-# {{ trans('mail.hello') }} {{ $target->assignedto?->present()->fullName() }},
+# {{ trans('mail.hello') }}{{ $target->assignedto?->present()->fullName() ? ' ' . $target->assignedto->present()->fullName() . ',' : ',' }}
{{ trans('mail.new_item_checked') }}
diff --git a/resources/views/mail/markdown/checkout-asset.blade.php b/resources/views/mail/markdown/checkout-asset.blade.php
index 12eb452da0..be92755507 100644
--- a/resources/views/mail/markdown/checkout-asset.blade.php
+++ b/resources/views/mail/markdown/checkout-asset.blade.php
@@ -1,7 +1,8 @@
@component('mail::message')
-# {{ trans('mail.hello') }} {{ $target->assignedto?->present()->fullName() }},
-
-{{ $introduction_line }}
+ @php
+ $target->assignedto = null;
+ @endphp
+# {{ trans('mail.hello') }}{{ $target->assignedto?->present()->fullName() ? ' ' . $target->assignedto->present()->fullName() . ',' : ',' }}
@if (($snipeSettings->show_images_in_email =='1') && $item->getImageUrl())
<center><img src="{{ $item->getImageUrl() }}" alt="Asset" style="max-width: 570px;"></center>