@if($isOpen)
Notifications
@if($unreadCount > 0) {{ $unreadCount }} nouvelle{{ $unreadCount > 1 ? 's' : '' }} @endif
@if($unreadCount > 0) @endif
    @forelse($notifications as $notification)
  • @php $icon = '๐Ÿ””'; if (str_contains($notification->title, '๐Ÿ“ž')) $icon = '๐Ÿ“ž'; elseif (str_contains($notification->title, '๐Ÿ“…')) $icon = '๐Ÿ“…'; elseif (str_contains($notification->title, '๐Ÿ“ง')) $icon = '๐Ÿ“ง'; elseif (str_contains($notification->title, 'โœ‰๏ธ')) $icon = 'โœ‰๏ธ'; @endphp {{ $icon }}

    {{ str_replace(['๐Ÿ“ž', '๐Ÿ“…', '๐Ÿ“ง', 'โœ‰๏ธ', '๐Ÿ””'], '', $notification->title) }}

    {{ $notification->message }}

    {{ $notification->created_at->diffForHumans() }}

    @if(!$notification->read)
    @endif
  • @empty
  • Aucune notification

    Les nouvelles notifications apparaรฎtront ici

  • @endforelse
@if($notifications->count() > 0) @endif
@endif