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>
10 lines
304 B
PHP
10 lines
304 B
PHP
@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
|