{{-- --}}
{{--
--}}
@auth
{{ auth()->user()->name }}
@php $roleName = optional(auth()->user()->roles->first())->name ?: (collect(auth()->user()->roles ?? [])->pluck('name')->join(', ') ?: 'Admin'); @endphp
{{ $roleName }}
  • الملف الشخصي
  • @csrf
@else {{-- Optionnel : affichage pour visiteurs (bouton connexion, icône, etc) --}} @endauth
{{-- scripts (keep bundle) --}}