@php
$adminNotifCount = \App\Models\Notification::where('user_id', auth('web')->id())
->where('type', 'deal_accepted')->where('is_read', false)->count();
$adminNotifs = \App\Models\Notification::where('user_id', auth('web')->id())
->where('type', 'deal_accepted')->latest()->limit(6)->get();
$adminName = auth('web')->user()->name ?? 'Admin';
$adminEmail = auth('web')->user()->email ?? '';
$adminAvatar = strtoupper(substr($adminName, 0, 1));
@endphp
Notifications
@if($adminNotifCount > 0)
{{ $adminNotifCount }} New
@endif