• @if ($unreadCount = auth()->user()->unreadNotifications->count()) {{ $unreadCount }} @endif
    {{ trans('notification.attribute') }}
    @if ($unreadCount) {{ trans_choice('notification.new', $unreadCount, ['num' => $unreadCount]) }} @endif
    @if ($unreadCount)
    @foreach (tap(auth()->user()->unreadNotifications)->markAsRead() as $notification) @include('user.components.notifications.' . Str::camel(class_basename($notification->type))) @endforeach
    @else
    {{ trans('notification.empty') }}
    {{ now() }}
    @endif {{--
    --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- All notifications --}} {{-- --}} {{--
    --}}