feat: add frontend admin shortcut for staff
Let admin and editor open /admin in a new tab from the public header and profile, so they can jump to the backend without leaving the site. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@auth
|
||||
@if(auth()->user()->canAccessAdmin())
|
||||
@if(! empty($asList))
|
||||
<li><a href="{{ url('/admin') }}" target="_blank" rel="noopener">管理</a></li>
|
||||
@else
|
||||
<a href="{{ url('/admin') }}" target="_blank" rel="noopener">管理</a>
|
||||
@endif
|
||||
@endif
|
||||
@endauth
|
||||
Reference in New Issue
Block a user