@auth @php $user = auth()->user()->loadMissing('gouvernorat', 'auberge', 'roles'); $roleId = $user->roles->pluck('id_roles')->first(); @endphp @if($roleId == 7 && $user->auberge)
{{ $user->auberge->nom_ar }}
@endif @if($roleId == 8 && $user->gouvernorat)
المندوبية الجهوية للشباب والرياضة بـ{{ $user->gouvernorat->nom_ar }}
@endif @endauth
{{ auth()->user()->unreadNotifications->count() }}
@auth
@forelse(auth()->user()->notifications as $notif)
{{ $notif->data['message'] ?? 'إشعار جديد' }}
{{ $notif->created_at->diffForHumans() }}
@empty
لا توجد إشعارات
@endforelse
@endauth
@auth
{{ auth()->user()->nom_prenom ?? 'زائر' }}
@endauth
@include('backoffice.partials.sidebar')
@yield('content')