@switch($notification->type)
@case('error')
@break
@case('warning')
@break
@case('success')
@break
@default
@endswitch
@if(!$notification->is_read)
جديد
@endif
@if($notification->is_required)
مهم
@endif
{{ $notification->title }}
{!! $notification->safe_content !!}
@if($notification->related_model_type && $notification->relatedModel)
@php
$linkHelper = app(\App\Services\Notification\NotificationLinkHelper::class);
$relatedLink = $linkHelper->getLinkForPlatform($notification, 'web');
@endphp
@if($relatedLink && $relatedLink !== '#')
عرض التفاصيل
@endif
@endif
{{ $notification->created_at?->diffForHumans() }}
@if(!$notification->is_read)
@else
✓ تمت القراءة
@endif