优化:使用说明页增加后台入口和退出登录按钮
This commit is contained in:
@@ -13,10 +13,16 @@
|
||||
@section('nav-title', '使用说明')
|
||||
|
||||
@section('nav-right')
|
||||
<a href="{{ route('rooms.index') }}"
|
||||
class="bg-indigo-500 hover:bg-indigo-400 px-4 py-2 rounded-md font-bold text-sm transition shadow-sm">
|
||||
← 返回大厅
|
||||
</a>
|
||||
{{-- admin 后台直达 --}}
|
||||
@if (Auth::user()->user_level >= 15)
|
||||
<a href="{{ route('admin.dashboard') }}" class="text-indigo-200 hover:text-white font-bold hidden sm:block">⚙️ 后台</a>
|
||||
@endif
|
||||
{{-- 退出登录 --}}
|
||||
<form action="{{ route('logout') }}" method="POST" class="inline">
|
||||
@csrf
|
||||
<button type="submit"
|
||||
class="text-sm border border-white/30 hover:bg-white/10 px-4 py-2 rounded-md transition font-medium">退出登录</button>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@section('head')
|
||||
|
||||
Reference in New Issue
Block a user