{{-- Page Header --}}
Notifications @php $unread = auth()->user()->unreadNotifications->count(); @endphp @if($unread > 0) {{ $unread }} New @endif
{{-- Notifications List --}}
@forelse($notifications as $notif) @php $isUnread = is_null($notif->read_at); $data = $notif->data; $link = route('admin.listings.inquiries', [ 'id' => $data['listing_id'], 'inquiry_id' => $data['inquiry_id'], ]); @endphp @empty

You're all caught up! No notifications.

@endforelse
{{-- Pagination --}} @if($notifications->hasPages())
@if($notifications->onFirstPage()) @else @endif @foreach($notifications->getUrlRange(1, $notifications->lastPage()) as $page => $url) @if($page == $notifications->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach @if($notifications->hasMorePages()) @else @endif
@endif