{{--
--}} {{-- Left: Breadcrumb --}}
@if (Auth::user()->hasRole('Super admin'))
back to general
@endif
{{--
--}} {{--
--}} @php $user = auth()->user(); $notifications = $user ? $user->notifications()->latest()->take(20)->get() : collect(); $unreadCount = $user ? $user->unreadNotifications()->count() : 0; @endphp {{-- Notification dropdown --}}
@if (auth()->check())
{{ $unreadCount }}
@endif
Notifications
Mark all as read
@forelse ($notifications as $notification)
{{ $notification->data['title'] ?? 'Notification' }}
{{ $notification->data['message'] ?? 'You have a new notification' }}
{{ $notification->created_at->diffForHumans() }}
@empty
No notifications yet
@endforelse
See All Notification
@php $user = Auth::user(); $profileImage = $user->staff->staff_photo ?? asset('assets/images/logo-icon.png'); @endphp
{{ Auth::user()?->full_name ?? (Auth::user()?->first_name ?? 'Guest') }}
Log Out
@push('scripts') @endpush