@php use function Filament\Support\prepare_inherited_attributes; $user = auth()->user(); $profile = strtolower(data_get($user?->getAttribute('profil_id'), 'nom')); $profileItem = $items['profile'] ?? $items['account'] ?? null; $profileItemUrl = $profileItem?->getUrl(); $profilePage = filament()->getProfilePage(); $hasProfileItem = filament()->hasProfile() || filled($profileItemUrl); $logoutItem = $items['logout'] ?? null; $items = ['account', 'logout', 'profile']; @endphp @if ($profileItem?->isVisible() ?? true) @if ($hasProfileItem) {{ $profileItem?->getLabel() ?? ($profilePage ? $profilePage::getLabel() : null) ?? filament()->getUserName($user) }} @else {{ $profileItem?->getLabel() ?? auth()->user()->fullName() }} @endif @endif Profil {{ $logoutItem?->getLabel() ?? __('filament-panels::layout.actions.logout.label') }}