@once @push('scripts') @endpush @endonce

{{ __('Notifications') }} @if ($unread_count) ({{ $unread_count }} {{ __('Unread') }}) @endif

@if ($notifications->count())
@if ($unreadCount) {{ __('Mark all as read') }} @endif {{ __('Delete All') }}
@endif
@if ($notifications->isNotEmpty())
    @foreach ($notifications as $notification)
  • @if (!$notification->read_at)
    {{ __('Unread') }}
    @endif

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

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

    @if ($notification->read_at) @else @endif
  • @endforeach
@if ($notifications->hasPages())
{{ $notifications->onEachSide(2)->links() }}
@endif @else
{{ __('There is no notifications to display.') }}
@endif