{{-- Notification bell para topbar — Client y Closer. Renderiza el ícono campanita + badge counter + dropdown con últimas 5 unread. Consume el endpoint del rol activo: - Client: /my-projects/api/notifications/unread-count - Closer: /closer/api/notifications/unread-count --}} @auth @php $u = auth()->user(); if ($u->hasRole('Client')) { $countEndpoint = route('client.projects.notifications.unread-count'); $indexUrl = route('client.projects.notifications.index'); } elseif ($u->hasRole('Closer')) { $countEndpoint = route('closer.notifications.unread-count'); $indexUrl = route('closer.notifications.index'); } else { $countEndpoint = null; $indexUrl = null; } @endphp @if($countEndpoint)
0
@push('scripts') @endpush @endif @endauth