admin middleware + llms.txt

This commit is contained in:
Doar Mihai
2026-05-02 00:04:55 +03:00
parent 99d2cc9a25
commit b92e315931
9 changed files with 240 additions and 20 deletions
+14 -4
View File
@@ -96,7 +96,11 @@
</svg>
Bookmarks
</a>
<a href="{{ route('admin.dashboard') }}" class="text-sm font-medium text-gray-500 hover:text-gray-700">Dashboard</a>
@if(auth()->user()->is_admin)
<a href="{{ route('admin.dashboard') }}" class="text-sm font-medium text-gray-500 hover:text-gray-700">Admin</a>
@else
<a href="{{ route('dashboard') }}" class="text-sm font-medium text-gray-500 hover:text-gray-700">Dashboard</a>
@endif
<form method="POST" action="{{ route('logout') }}">
@csrf
<button type="submit" class="text-sm font-medium text-gray-500 hover:text-gray-700">Log out</button>
@@ -153,9 +157,15 @@
<a href="{{ route('bookmarks') }}" class="block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700">
Bookmarks
</a>
<a href="{{ route('admin.dashboard') }}" class="block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700">
Dashboard
</a>
@if(auth()->user()->is_admin)
<a href="{{ route('admin.dashboard') }}" class="block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700">
Admin
</a>
@else
<a href="{{ route('dashboard') }}" class="block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700">
Dashboard
</a>
@endif
<form method="POST" action="{{ route('logout') }}">
@csrf
<button type="submit" class="w-full text-left block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700">