@php $currentAdmin = auth('admin')->user(); $notificationService = app(\App\Services\System\NotificationService::class); $canViewNotifications = $currentAdmin && $currentAdmin->can('system.notifications.view'); $unreadNotifications = $canViewNotifications ? $notificationService->getUnreadForAdmin($currentAdmin) : collect(); $unreadCount = $canViewNotifications ? $notificationService->getUnreadCount($currentAdmin) : 0; @endphp @if($canViewNotifications) @include('dashboard.admin.system.notifications.dropdown', [ 'unreadNotifications' => $unreadNotifications, 'unreadCount' => $unreadCount, ]) @endif {{--
--}}
@if(app()->getLocale() =='en')