@@ -117,7 +117,7 @@ public function toSlack()
117117 ->from ($ botname )
118118 ->to ($ channel )
119119 ->attachment (function ($ attachment ) use ($ item , $ note , $ admin , $ fields ) {
120- $ attachment ->title (htmlspecialchars_decode ($ this ->checkout_qty .' x ' .$ item ->present ()-> name ), $ item ->present ()->viewUrl ())
120+ $ attachment ->title (htmlspecialchars_decode ($ this ->checkout_qty .' x ' .$ item ->display_name ), $ item ->present ()->viewUrl ())
121121 ->fields ($ fields )
122122 ->content ($ note );
123123 });
@@ -136,8 +136,8 @@ public function toMicrosoftTeams()
136136 ->addStartGroupToSection ('activityTitle ' )
137137 ->title (trans ('mail.Accessory_Checkout_Notification ' ))
138138 ->addStartGroupToSection ('activityText ' )
139- ->fact (htmlspecialchars_decode ($ item ->present ()-> name ), '' , 'activityTitle ' )
140- ->fact (trans ('mail.assigned_to ' ), $ target ->present ()-> name )
139+ ->fact (htmlspecialchars_decode ($ item ->display_name ), '' , 'activityTitle ' )
140+ ->fact (trans ('mail.assigned_to ' ), $ target ->display_name )
141141 ->fact (trans ('general.qty ' ), $ this ->checkout_qty )
142142 ->fact (trans ('mail.checkedout_from ' ), $ item ->location ->name ? $ item ->location ->name : '' )
143143 ->fact (trans ('mail.Accessory_Checkout_Notification ' ) . " by " , $ admin ->display_name )
@@ -148,7 +148,7 @@ public function toMicrosoftTeams()
148148 $ message = trans ('mail.Accessory_Checkout_Notification ' );
149149 $ details = [
150150 trans ('mail.assigned_to ' ) => $ target ->present ()->name ,
151- trans ('mail.accessory_name ' ) => htmlspecialchars_decode ($ item ->present ()-> name ),
151+ trans ('mail.accessory_name ' ) => htmlspecialchars_decode ($ item ->display_name ),
152152 trans ('general.qty ' ) => $ this ->checkout_qty ,
153153 trans ('mail.checkedout_from ' ) => $ item ->location ->name ? $ item ->location ->name : '' ,
154154 trans ('mail.Accessory_Checkout_Notification ' ). ' by ' => $ admin ->display_name ,
@@ -169,7 +169,7 @@ public function toGoogleChat()
169169 Card::create ()
170170 ->header (
171171 '<strong> ' .trans ('mail.Accessory_Checkout_Notification ' ).'</strong> ' ?: '' ,
172- htmlspecialchars_decode ($ item ->present ()-> name ) ?: '' ,
172+ htmlspecialchars_decode ($ item ->display_name ) ?: '' ,
173173 )
174174 ->section (
175175 Section::create (
0 commit comments