@php $notificationType = (isset($notification['type']) && $notification['type'] == 'error') ? "danger" : $notification['type']; $nType = ($type == 1) ? "danger" : $notificationType; $notificationTitle = "

".$notification['title']."

"; if(isset($notification['sub_title']) && $type > 1): $notificationTitle .= "".$notification['sub_title'].""; endif; $notificationTitle .= "
"; $notificationHtml = "
"; $id = $notification['id']; if(!empty($notification['video_url'])): $videoUrl = getYoutubeEmbedUrl($notification['video_url']); $notificationHtml .= '
'; endif; if(!empty($notification['image'])): $notificationImage = getStorageUrlLink($notification['image']); if(!empty($notificationImage)): $notificationHtml .= '
'; endif; endif; $notificationHtml .= "
".$notification['description']."
"; $modalId = "notification_".$notification['id']."_".$type; $modalBtnId = "notificationBtn_".$notification['id']."_".$type; @endphp