@auth
{{ auth()->user()->name }}
@php
$roleName = optional(auth()->user()->roles->first())->name ?: (collect(auth()->user()->roles ?? [])->pluck('name')->join(', ') ?: 'Admin');
@endphp
{{ $roleName }}
@else
{{-- Optionnel : affichage pour visiteurs (bouton connexion, icône, etc) --}}
@endauth