Skip to content

Commit f5fc5e8

Browse files
committed
code4romania#146 Add profile and 2fa links in admin menu
1 parent 1328a2d commit f5fc5e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

resources/views/layouts/admin.blade.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@
6969
</a>
7070

7171
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
72+
@if (Auth::user()->isAdministrator())
73+
<a class="dropdown-item" href="{{ route('admin.profile') }}">
74+
{{ __('My profile') }}
75+
</a>
76+
@elseif (Auth::user()->isHost())
77+
<a class="dropdown-item" href="{{ route('host.profile') }}">
78+
{{ __('My profile') }}
79+
</a>
80+
@endif
81+
82+
<a class="dropdown-item" href="{{ route('2fa.form') }}">
83+
{{ __('2FA') }}
84+
</a>
85+
7286
<a class="dropdown-item" href="{{ route('logout') }}"
7387
onclick="event.preventDefault();
7488
document.getElementById('logout-form').submit();">

0 commit comments

Comments
 (0)