1{{--
2 Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
3 See the LICENCE file in the repository root for full licence text.
4--}}
5<div class="navbar-mobile-item js-click-menu--close">
6 @if (Auth::check())
7 <div
8 class="navbar-mobile-item__main js-react--user-card"
9 data-is-current-user="1"
10 ></div>
11
12 @include('layout._score_mode_toggle', ['class' => 'navbar-mobile-item__main'])
13
14 <a
15 class="navbar-mobile-item__main"
16 href="{{ route('users.show', Auth::user()) }}"
17 >
18 {{ osu_trans('layout.popup_user.links.profile') }}
19 </a>
20
21 <a class="navbar-mobile-item__main" href="{{ route('friends.index') }}">
22 {{ osu_trans('layout.popup_user.links.friends') }}
23 </a>
24
25 <a class="navbar-mobile-item__main" href="{{ route('follows.index', ['subtype' => App\Models\Follow::DEFAULT_SUBTYPE]) }}">
26 {{ osu_trans('layout.popup_user.links.follows') }}
27 </a>
28
29 <a class="navbar-mobile-item__main" href="{{ route('account.edit') }}">
30 {{ osu_trans('layout.popup_user.links.account-edit') }}
31 </a>
32
33 <button
34 class="js-logout-link navbar-mobile-item__main"
35 type="button"
36 data-url="{{ route('logout') }}"
37 data-confirm="{{ osu_trans('users.logout_confirm') }}"
38 data-method="delete"
39 data-remote="1"
40 >
41 {{ osu_trans('layout.popup_user.links.logout') }}
42 </button>
43 @else
44 <a
45 class="js-user-link navbar-mobile-item__main navbar-mobile-item__main--user"
46 href="#"
47 title="{{ osu_trans('users.anonymous.login_link') }}"
48 >
49 <span class="avatar avatar--guest avatar--navbar-mobile"></span>
50
51 {{ osu_trans('users.anonymous.username') }}
52 </a>
53 @endif
54</div>