2026-02-14 17:06:03 +02:00
|
|
|
<nav class="bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700 sticky top-0 z-50" x-data="{ mobileMenuOpen: false, userMenuOpen: false }">
|
2026-02-08 14:13:22 +02:00
|
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
|
|
|
<div class="flex justify-between h-16">
|
|
|
|
|
<!-- Logo and Primary Navigation -->
|
2026-02-14 16:11:09 +02:00
|
|
|
<div class="flex flex-1">
|
2026-02-08 14:13:22 +02:00
|
|
|
<!-- Logo -->
|
|
|
|
|
<div class="flex-shrink-0 flex items-center">
|
2026-02-14 16:11:09 +02:00
|
|
|
<a href="{{ route('homepage') }}" class="flex items-center space-x-2">
|
2026-02-14 17:06:03 +02:00
|
|
|
<svg class="h-8 w-8 text-primary-600 dark:text-primary-400" fill="currentColor" viewBox="0 0 24 24">
|
2026-02-08 14:13:22 +02:00
|
|
|
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
|
|
|
|
|
</svg>
|
2026-02-14 17:06:03 +02:00
|
|
|
<span class="text-xl font-bold text-gray-900 dark:text-white">{{ config('app.name', 'BestTech') }}</span>
|
2026-02-08 14:13:22 +02:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Desktop Navigation -->
|
|
|
|
|
<div class="hidden sm:ml-8 sm:flex sm:space-x-8">
|
|
|
|
|
<a href="{{ route('products.index') }}"
|
2026-02-14 17:06:03 +02:00
|
|
|
class="inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium {{ request()->routeIs('products.*') ? 'border-primary-500 text-gray-900 dark:text-white' : 'border-transparent text-gray-500 dark:text-gray-400 hover:border-gray-300 dark:hover:border-gray-600 hover:text-gray-700 dark:hover:text-gray-300' }}">
|
2026-02-14 16:11:09 +02:00
|
|
|
Products
|
2026-02-08 14:13:22 +02:00
|
|
|
</a>
|
|
|
|
|
</div>
|
2026-02-14 16:11:09 +02:00
|
|
|
|
|
|
|
|
<!-- Search Bar (Desktop) -->
|
|
|
|
|
<div class="hidden md:flex md:flex-1 md:ml-8 md:mr-8 md:max-w-md">
|
|
|
|
|
<form action="{{ route('products.index') }}" method="GET" class="w-full">
|
|
|
|
|
<div class="relative">
|
|
|
|
|
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
|
|
|
|
<svg class="h-5 w-5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text"
|
|
|
|
|
name="search"
|
|
|
|
|
value="{{ request('search') }}"
|
2026-02-14 17:06:03 +02:00
|
|
|
class="block w-full pl-10 pr-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md leading-5 bg-white dark:bg-gray-800 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm"
|
2026-02-14 16:11:09 +02:00
|
|
|
placeholder="Search products...">
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2026-02-08 14:13:22 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Right Side -->
|
|
|
|
|
<div class="hidden sm:ml-6 sm:flex sm:items-center sm:space-x-4">
|
2026-02-14 17:06:03 +02:00
|
|
|
<!-- Theme Toggle -->
|
|
|
|
|
@include('components.ui.theme-toggle')
|
|
|
|
|
|
2026-02-08 14:13:22 +02:00
|
|
|
@guest
|
2026-02-14 17:06:03 +02:00
|
|
|
<a href="{{ route('login') }}" class="text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white px-3 py-2 rounded-md text-sm font-medium">
|
2026-02-08 14:13:22 +02:00
|
|
|
Sign in
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('register') }}" class="btn-primary">
|
|
|
|
|
Get started
|
|
|
|
|
</a>
|
|
|
|
|
@else
|
|
|
|
|
<!-- Submit Product Button -->
|
|
|
|
|
<a href="{{ route('products.create') }}" class="btn-primary flex items-center space-x-2">
|
|
|
|
|
<svg class="h-5 w-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
<span>Submit</span>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<!-- User Menu Dropdown -->
|
|
|
|
|
<div class="relative" @click.away="userMenuOpen = false">
|
|
|
|
|
<button @click="userMenuOpen = !userMenuOpen"
|
|
|
|
|
class="flex items-center space-x-3 text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
|
|
|
|
|
<div class="h-8 w-8 rounded-full bg-gradient-to-br from-primary-500 to-accent-500 flex items-center justify-center text-white font-semibold">
|
|
|
|
|
{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}
|
|
|
|
|
</div>
|
|
|
|
|
<svg class="h-5 w-5 text-gray-400" fill="currentColor" viewBox="0 0 20 20">
|
|
|
|
|
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<!-- Dropdown Menu -->
|
|
|
|
|
<div x-show="userMenuOpen"
|
|
|
|
|
x-transition:enter="transition ease-out duration-100"
|
|
|
|
|
x-transition:enter-start="transform opacity-0 scale-95"
|
|
|
|
|
x-transition:enter-end="transform opacity-100 scale-100"
|
|
|
|
|
x-transition:leave="transition ease-in duration-75"
|
|
|
|
|
x-transition:leave-start="transform opacity-100 scale-100"
|
|
|
|
|
x-transition:leave-end="transform opacity-0 scale-95"
|
2026-02-14 17:06:03 +02:00
|
|
|
class="origin-top-right absolute right-0 mt-2 w-48 rounded-lg shadow-lg py-1 bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5"
|
2026-02-08 14:13:22 +02:00
|
|
|
style="display: none;">
|
2026-02-14 17:06:03 +02:00
|
|
|
<div class="px-4 py-2 border-b border-gray-100 dark:border-gray-700">
|
|
|
|
|
<p class="text-sm font-medium text-gray-900 dark:text-white">{{ Auth::user()->name }}</p>
|
|
|
|
|
<p class="text-xs text-gray-500 dark:text-gray-400">{{ Auth::user()->email }}</p>
|
2026-02-08 14:13:22 +02:00
|
|
|
</div>
|
2026-02-14 17:06:03 +02:00
|
|
|
<a href="{{ route('profile.show', Auth::user()) }}" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
2026-02-08 14:13:22 +02:00
|
|
|
Your Profile
|
|
|
|
|
</a>
|
2026-02-14 17:06:03 +02:00
|
|
|
<a href="{{ route('bookmarks.index') }}" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<svg class="mr-2 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
Bookmarks
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('upvotes.index') }}" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<svg class="mr-2 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
Upvotes
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('profile.edit') }}" class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
2026-02-08 14:13:22 +02:00
|
|
|
Settings
|
|
|
|
|
</a>
|
2026-02-21 14:27:38 +02:00
|
|
|
|
|
|
|
|
@if(auth()->user()->hasRole('admin'))
|
|
|
|
|
<div class="border-t border-gray-100 dark:border-gray-700 my-1"></div>
|
|
|
|
|
<a href="{{ route('admin.dashboard') }}"
|
|
|
|
|
class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
|
|
|
>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<svg class="mr-2 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
Admin Dashboard
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('admin.users.index') }}"
|
|
|
|
|
class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
|
|
|
>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<svg class="mr-2 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
Manage Users
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
2026-02-21 15:10:37 +02:00
|
|
|
<a href="{{ route('admin.feature-flags.index') }}"
|
|
|
|
|
class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
|
|
|
>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<svg class="mr-2 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
Feature Flags
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
2026-02-21 14:27:38 +02:00
|
|
|
@endif
|
|
|
|
|
@if(auth()->user()->hasAnyRole(['admin', 'moderator']))
|
|
|
|
|
<a href="{{ route('products.manage') }}"
|
|
|
|
|
class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
|
|
|
>
|
2026-02-21 14:57:38 +02:00
|
|
|
<div class="flex items-center">
|
|
|
|
|
<svg class="mr-2 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
Manage Products
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('categories.index') }}"
|
|
|
|
|
class="block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
|
|
|
>
|
|
|
|
|
<div class="flex items-center">
|
|
|
|
|
<svg class="mr-2 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
Manage Categories
|
|
|
|
|
</div>
|
2026-02-21 14:27:38 +02:00
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
|
2026-02-08 14:13:22 +02:00
|
|
|
<form method="POST" action="{{ route('logout') }}">
|
|
|
|
|
@csrf
|
2026-02-14 17:06:03 +02:00
|
|
|
<button type="submit" class="block w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700">
|
2026-02-08 14:13:22 +02:00
|
|
|
Sign out
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endguest
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Mobile menu button -->
|
2026-02-14 17:06:03 +02:00
|
|
|
<div class="flex items-center sm:hidden space-x-2">
|
|
|
|
|
<!-- Theme Toggle (Mobile) -->
|
|
|
|
|
@include('components.ui.theme-toggle')
|
|
|
|
|
|
2026-02-08 14:13:22 +02:00
|
|
|
<button @click="mobileMenuOpen = !mobileMenuOpen"
|
|
|
|
|
class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary-500">
|
|
|
|
|
<svg class="h-6 w-6" :class="{'hidden': mobileMenuOpen, 'block': !mobileMenuOpen }" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
<svg class="h-6 w-6" :class="{'block': mobileMenuOpen, 'hidden': !mobileMenuOpen }" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Mobile menu -->
|
|
|
|
|
<div x-show="mobileMenuOpen"
|
|
|
|
|
x-transition:enter="transition ease-out duration-100"
|
|
|
|
|
x-transition:enter-start="transform opacity-0 scale-95"
|
|
|
|
|
x-transition:enter-end="transform opacity-100 scale-100"
|
|
|
|
|
x-transition:leave="transition ease-in duration-75"
|
|
|
|
|
x-transition:leave-start="transform opacity-100 scale-100"
|
|
|
|
|
x-transition:leave-end="transform opacity-0 scale-95"
|
|
|
|
|
class="sm:hidden"
|
|
|
|
|
style="display: none;">
|
|
|
|
|
<div class="pt-2 pb-3 space-y-1">
|
|
|
|
|
<a href="{{ route('products.index') }}"
|
|
|
|
|
class="block pl-3 pr-4 py-2 border-l-4 text-base font-medium {{ request()->routeIs('products.index') ? 'border-primary-500 text-primary-700 bg-primary-50' : 'border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700' }}">
|
|
|
|
|
Discover
|
|
|
|
|
</a>
|
|
|
|
|
@auth
|
2026-02-14 17:20:50 +02:00
|
|
|
@if(auth()->user()->hasRole('admin'))
|
|
|
|
|
<a href="{{ route('admin.dashboard') }}"
|
2026-02-21 14:27:38 +02:00
|
|
|
class="block pl-3 pr-4 py-2 border-l-4 text-base font-medium {{ request()->routeIs('admin.dashboard') ? 'border-primary-500 text-primary-700 bg-primary-50 dark:bg-primary-900 dark:text-primary-200' : 'border-transparent text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:text-gray-700 dark:hover:text-gray-300' }}">
|
|
|
|
|
Admin Dashboard
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('admin.users.index') }}"
|
|
|
|
|
class="block pl-3 pr-4 py-2 border-l-4 text-base font-medium {{ request()->routeIs('admin.users.*') ? 'border-primary-500 text-primary-700 bg-primary-50 dark:bg-primary-900 dark:text-primary-200' : 'border-transparent text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:text-gray-700 dark:hover:text-gray-300' }}">
|
|
|
|
|
Manage Users
|
2026-02-14 17:20:50 +02:00
|
|
|
</a>
|
2026-02-21 15:10:37 +02:00
|
|
|
<a href="{{ route('admin.feature-flags.index') }}"
|
|
|
|
|
class="block pl-3 pr-4 py-2 border-l-4 text-base font-medium {{ request()->routeIs('admin.feature-flags.*') ? 'border-primary-500 text-primary-700 bg-primary-50 dark:bg-primary-900 dark:text-primary-200' : 'border-transparent text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:text-gray-700 dark:hover:text-gray-300' }}">
|
|
|
|
|
Feature Flags
|
|
|
|
|
</a>
|
2026-02-14 17:20:50 +02:00
|
|
|
@endif
|
2026-02-08 14:13:22 +02:00
|
|
|
@if(auth()->user()->hasAnyRole(['admin', 'moderator']))
|
|
|
|
|
<a href="{{ route('products.manage') }}"
|
2026-02-21 14:57:38 +02:00
|
|
|
class="block pl-3 pr-4 py-2 border-l-4 text-base font-medium {{ request()->routeIs('products.manage') ? 'border-primary-500 text-primary-700 bg-primary-50 dark:bg-primary-900 dark:text-primary-200' : 'border-transparent text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:text-gray-700 dark:hover:text-gray-300' }}">
|
|
|
|
|
Manage Products
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('categories.index') }}"
|
|
|
|
|
class="block pl-3 pr-4 py-2 border-l-4 text-base font-medium {{ request()->routeIs('categories.*') ? 'border-primary-500 text-primary-700 bg-primary-50 dark:bg-primary-900 dark:text-primary-200' : 'border-transparent text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:text-gray-700 dark:hover:text-gray-300' }}">
|
|
|
|
|
Manage Categories
|
2026-02-08 14:13:22 +02:00
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
@endauth
|
|
|
|
|
</div>
|
|
|
|
|
@auth
|
|
|
|
|
<div class="pt-4 pb-3 border-t border-gray-200">
|
|
|
|
|
<div class="flex items-center px-4">
|
|
|
|
|
<div class="flex-shrink-0">
|
|
|
|
|
<div class="h-10 w-10 rounded-full bg-gradient-to-br from-primary-500 to-accent-500 flex items-center justify-center text-white font-semibold">
|
|
|
|
|
{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ml-3">
|
|
|
|
|
<div class="text-base font-medium text-gray-800">{{ Auth::user()->name }}</div>
|
|
|
|
|
<div class="text-sm font-medium text-gray-500">{{ Auth::user()->email }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mt-3 space-y-1">
|
|
|
|
|
<a href="{{ route('products.create') }}" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">
|
|
|
|
|
Submit Product
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('profile.show', Auth::user()) }}" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">
|
|
|
|
|
Your Profile
|
|
|
|
|
</a>
|
2026-02-14 17:06:03 +02:00
|
|
|
<a href="{{ route('bookmarks.index') }}" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">
|
|
|
|
|
Bookmarks
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('upvotes.index') }}" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">
|
|
|
|
|
Upvotes
|
|
|
|
|
</a>
|
2026-02-08 14:13:22 +02:00
|
|
|
<a href="{{ route('profile.edit') }}" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">
|
|
|
|
|
Settings
|
|
|
|
|
</a>
|
|
|
|
|
<form method="POST" action="{{ route('logout') }}">
|
|
|
|
|
@csrf
|
|
|
|
|
<button type="submit" class="block w-full text-left px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">
|
|
|
|
|
Sign out
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@else
|
|
|
|
|
<div class="pt-4 pb-3 border-t border-gray-200 space-y-1">
|
|
|
|
|
<a href="{{ route('login') }}" class="block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100">
|
|
|
|
|
Sign in
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('register') }}" class="block px-4 py-2 text-base font-medium text-primary-600 hover:text-primary-800 hover:bg-gray-100">
|
|
|
|
|
Get started
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
@endguest
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|