@@ -127,17 +127,16 @@ public function toMicrosoftTeams()
127127 $ item = $ this ->item ;
128128 $ note = $ this ->note ;
129129
130- return MicrosoftTeamsMessage::create ()
131- ->to ($ this ->settings ->webhook_endpoint )
132- ->type ('success ' )
133- ->addStartGroupToSection ('activityTitle ' )
134- ->title (trans ('mail.Consumable_checkout_notification ' ))
135- ->addStartGroupToSection ('activityText ' )
136- ->fact (htmlspecialchars_decode ($ item ->present ()->name ), '' , 'activityTitle ' )
137- ->fact (trans ('mail.Consumable_checkout_notification ' )." by " , $ admin ->present ()->fullName ())
138- ->fact (trans ('mail.assigned_to ' ), $ target ->present ()->fullName ())
139- ->fact (trans ('admin/consumables/general.remaining ' ), $ item ->numRemaining ())
140- ->fact (trans ('mail.notes ' ), $ note ?: '' );
130+ $ message = trans ('mail.Consumable_checkout_notification ' );
131+ $ details = [
132+ trans ('mail.assigned_to ' ) => $ target ->present ()->fullName (),
133+ trans ('mail.item ' ) => htmlspecialchars_decode ($ item ->present ()->name ),
134+ trans ('mail.Consumable_checkout_notification ' ).' by ' => $ admin ->present ()->fullName (),
135+ trans ('admin/consumables/general.remaining ' ) => $ item ->numRemaining (),
136+ trans ('mail.notes ' ) => $ note ?: '' ,
137+ ];
138+
139+ return array ($ message , $ details );
141140 }
142141 public function toGoogleChat ()
143142 {
0 commit comments