@php $unreadCount = \App\Models\UserNotification::where('user_id', auth()->id())->whereNull('read_at')->count(); @endphp @if($unreadCount > 0) {{ $unreadCount }} @endif
@if(session('success')) @endif @if(session('error')) @endif @yield('content')
@php $pendingApprovalsNavCount = $pendingCount ?? \App\Models\ApprovalRequest::where('status', 'PENDING')->count(); @endphp