@php
$notificationType = (isset($notification['type']) && $notification['type'] == 'error') ? "danger" : $notification['type'];
$nType = ($type == 1) ? "danger" : $notificationType;
$notificationTitle = "
";
$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