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