feat: implement gate authentication with login and logout functionality

This commit is contained in:
I-Fun
2026-04-03 11:12:10 +07:00
parent 3f18dbaadf
commit a0b294fa1c
8 changed files with 205 additions and 1 deletions

View File

@@ -134,6 +134,15 @@
class="nav-item {{ request()->routeIs('settings.*') ? 'active' : '' }}">
<span class="text-lg shrink-0">🔔</span> Notifications
</a>
{{-- Logout --}}
<form method="POST" action="{{ route('gate.logout') }}" class="mt-auto pt-4">
@csrf
<button type="submit"
class="nav-item w-full text-left text-gray-400 hover:text-red-400 hover:bg-red-50 transition-colors">
<span class="text-lg shrink-0">🚪</span> Lock App
</button>
</form>
</nav>
</aside>