From befab608f28c1ffd902f7b6658b98fe19b3fdd05 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 17 Jan 2024 17:59:20 -0800 Subject: [PATCH] cha cha cha changes --- app/Notifications/CheckinAssetNotification.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Notifications/CheckinAssetNotification.php b/app/Notifications/CheckinAssetNotification.php index 09f55bfc5e..0b04af904b 100644 --- a/app/Notifications/CheckinAssetNotification.php +++ b/app/Notifications/CheckinAssetNotification.php @@ -103,11 +103,15 @@ class CheckinAssetNotification extends Notification return MicrosoftTeamsMessage::create() ->to($this->settings->webhook_endpoint) ->type('success') + ->addStartGroupToSection('header') ->title("Asset Checked in") - ->fact($item->present()->name, '') + ->fact(htmlspecialchars_decode($item->present()->name), '', 'header') ->fact('Checked into ', $item->location->name) ->fact(trans('mail.Asset_Checkin_Notification')." by ", $admin->present()->fullName()) - ->fact('Asset Status', $item->assetstatus->name); + ->fact('Asset Status', $item->assetstatus->name) + ->fact('Notes', $note ?: 'No notes'); +// ->image($item->getImageUrl(), $item->model()->name, 'header'); +