Part Mart
  • @php $unreadNotifications = auth()->user()->notifications()->where('is_read', 0)->count(); @endphp @if ($unreadNotifications > 0) {{ $unreadNotifications > 9 ? '9+' : $unreadNotifications }} @endif
    • الإشعارات
      @if ($unreadNotifications > 0) {{ $unreadNotifications }} جديد @endif

    • @php $notifications = auth()->user()->notifications()->latest()->take(5)->get(); @endphp @forelse ($notifications as $notification)
    • {{ $notification->title }}

      {{ Str::limit($notification->body, 50) }}

      {{ $notification->created_at->diffForHumans() }}
    • @empty
    • لا توجد إشعارات
    • @endforelse
    • رؤية المزيد