Enable user switching
This commit is contained in:
@@ -15,8 +15,15 @@
|
||||
|
||||
<ul class="float-end">
|
||||
@auth
|
||||
<li><a href="{{ url('settings') }}"><span>{{ Auth::user()->name }}</span></a></li>
|
||||
<li><a href="{{ url('logout') }}"><span>Logout</span></a></li>
|
||||
<li class="{{ Auth::user()->switched ? 'switched' : '' }}"><a href="{{ url('settings') }}"><span>{{ Auth::user()->name }}</span></a></li>
|
||||
@if(Auth::user()->switched)
|
||||
<li><a href="{{ url('admin/switch/stop') }}">
|
||||
<span>Switch Back</span>
|
||||
</a></li>
|
||||
@else
|
||||
<li><a href="{{ url('logout') }}"><span>Logout</span></a></li>
|
||||
@endif
|
||||
|
||||
@endauth
|
||||
@guest
|
||||
<li><a href="{{ url('login') }}"><span>Login</span></a></li>
|
||||
|
Reference in New Issue
Block a user