@if($this->notifications->filter(fn($value, $key) => !$value->read_at)->count() > 0) @else @endif
    @forelse ($this->notifications as $notification)
  • !$notification->read_at, ])>

    {{ $notification->data['title'] }}

    {{ $notification->data['message'] }}

    {{ $notification->created_at->diffForHumans() }}
    @if (!$notification->read_at) @endif
  • @empty
  • {{ __('ui.notification.empty') }}

  • @endforelse @if ($this->notifications->filter(fn($value, $key) => !$value->read_at)->count() > 1)
  • {{ __('ui.notification.read_all') }}
  • @endif