@php $currentDoctor = auth('doctor')->user(); $notificationService = app(\App\Services\System\NotificationService::class); $unreadNotifications = $notificationService->getUnreadCountFor($currentDoctor) > 0 ? $currentDoctor->unreadNotifications()->orderByDesc('created_at')->limit(5)->get() : collect(); $unreadCount = $notificationService->getUnreadCountFor($currentDoctor); @endphp @include('dashboard.doctor.notifications.dropdown', [ 'unreadNotifications' => $unreadNotifications, 'unreadCount' => $unreadCount, ])
@if(app()->getLocale() == 'en')