Files
laralog/resources/views/partials/admin-link.blade.php
T
goukiandCursor debead72a5
Build and Deploy / verify (push) Failing after 15m18s
Build and Deploy / deploy (push) Skipped
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>
2026-09-21 23:42:54 +00:00

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