1 <div class="dropdown-container" component="dropdown" option:dropdown:bubble-escapes="true">
2 <span class="user-name py-s hide-under-l" refs="dropdown@toggle"
3 aria-haspopup="true" aria-expanded="false" aria-label="{{ trans('common.profile_menu') }}" tabindex="0">
4 <img class="avatar" src="{{$user->getAvatar(30)}}" alt="{{ $user->name }}">
5 <span class="name">{{ $user->getShortName(9) }}</span> @icon('caret-down')
7 <ul refs="dropdown@menu" class="dropdown-menu" role="menu">
9 <a href="{{ url('/favourites') }}" data-shortcut="favourites_view" class="icon-item">
11 <div>{{ trans('entities.my_favourites') }}</div>
15 <a href="{{ $user->getProfileUrl() }}" data-shortcut="profile_view" class="icon-item">
17 <div>{{ trans('common.view_profile') }}</div>
21 <a href="{{ url('/my-account') }}" class="icon-item">
22 @icon('user-preferences')
23 <div>{{ trans('preferences.my_account') }}</div>
28 @include('common.dark-mode-toggle', ['classes' => 'icon-item'])
33 // OIDC Logout Feature: Use /oidc/logout if authentication method is oidc.
34 if (config('auth.method') === 'oidc') {
36 <form action="/oidc/logout"
39 // OIDC Logout Feature: Use /oidc/logout if authentication method is oidc.
42 <form action="{{ url(config('auth.method') === 'saml2' ? '/saml2/logout' : '/logout') }}"
45 // OIDC Logout Feature: Use /oidc/logout if authentication method is oidc.
49 <button class="icon-item" data-shortcut="logout">
51 <div>{{ trans('auth.logout') }}</div>