{{-- Page Header --}}
{{-- Notifications List --}}
Notifications
@php $unread = auth()->user()->unreadNotifications->count(); @endphp
@if($unread > 0)
{{ $unread }} New
@endif
@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
@endforelse
{{-- Pagination --}}
@if($notifications->hasPages())
@endif
{{-- Icon --}}
{{-- Clickable Body --}}
@empty
New inquiry from {{ $data['inquirer_name'] ?? 'Someone' }}
{{ $data['listing_title'] ?? 'N/A' }}
{{ $notif->created_at->diffForHumans() }}
{{-- Actions --}}
@if($isUnread)
@endif
You're all caught up! No notifications.