Build
This commit is contained in:
@@ -15,41 +15,73 @@
|
||||
<x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-nav-link>
|
||||
<x-nav-link :href="route('providers.index')" :active="request()->routeIs('providers.*')">
|
||||
{{ __('Providers') }}
|
||||
</x-nav-link>
|
||||
<x-nav-link :href="route('buyers.index')" :active="request()->routeIs('buyers.*')">
|
||||
{{ __('Buyers') }}
|
||||
</x-nav-link>
|
||||
<x-nav-link :href="route('feed.index')" :active="request()->routeIs('feed.*')">
|
||||
{{ __('Feed') }}
|
||||
</x-nav-link>
|
||||
<x-nav-link :href="route('jobs.index')" :active="request()->routeIs('jobs.*')">
|
||||
{{ __('Jobs') }}
|
||||
</x-nav-link>
|
||||
<x-nav-link :href="route('work-orders.index')" :active="request()->routeIs('work-orders.*')">
|
||||
{{ __('Work Orders') }}
|
||||
</x-nav-link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Settings Dropdown -->
|
||||
<div class="hidden sm:flex sm:items-center sm:ms-6">
|
||||
<x-dropdown align="right" width="48">
|
||||
<x-slot name="trigger">
|
||||
<button class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150">
|
||||
<div>{{ Auth::user()->name }}</div>
|
||||
@auth
|
||||
<x-dropdown align="right" width="48">
|
||||
<x-slot name="trigger">
|
||||
<button class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150">
|
||||
<div>{{ Auth::user()->name }}</div>
|
||||
|
||||
<div class="ms-1">
|
||||
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" 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" />
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
</x-slot>
|
||||
<div class="ms-1">
|
||||
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" 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" />
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="content">
|
||||
<x-dropdown-link :href="route('profile.edit')">
|
||||
{{ __('Profile') }}
|
||||
</x-dropdown-link>
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
|
||||
<x-dropdown-link :href="route('logout')"
|
||||
onclick="event.preventDefault();
|
||||
this.closest('form').submit();">
|
||||
{{ __('Log Out') }}
|
||||
<x-slot name="content">
|
||||
<x-dropdown-link :href="route('profile.edit')">
|
||||
{{ __('Profile') }}
|
||||
</x-dropdown-link>
|
||||
</form>
|
||||
</x-slot>
|
||||
</x-dropdown>
|
||||
@role('provider')
|
||||
<x-dropdown-link :href="route('providers.edit')">
|
||||
{{ __('Provider Profile') }}
|
||||
</x-dropdown-link>
|
||||
@endrole
|
||||
@role('buyer')
|
||||
<x-dropdown-link :href="route('buyers.edit')">
|
||||
{{ __('Buyer Profile') }}
|
||||
</x-dropdown-link>
|
||||
@endrole
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
|
||||
<x-dropdown-link :href="route('logout')"
|
||||
onclick="event.preventDefault();
|
||||
this.closest('form').submit();">
|
||||
{{ __('Log Out') }}
|
||||
</x-dropdown-link>
|
||||
</form>
|
||||
</x-slot>
|
||||
</x-dropdown>
|
||||
@else
|
||||
<div class="flex gap-4 text-sm">
|
||||
<a href="{{ route('login') }}" class="text-gray-600 hover:text-gray-900">Log in</a>
|
||||
<a href="{{ route('register') }}" class="text-gray-600 hover:text-gray-900">Register</a>
|
||||
</div>
|
||||
@endauth
|
||||
</div>
|
||||
|
||||
<!-- Hamburger -->
|
||||
@@ -70,30 +102,66 @@
|
||||
<x-responsive-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
||||
{{ __('Dashboard') }}
|
||||
</x-responsive-nav-link>
|
||||
<x-responsive-nav-link :href="route('providers.index')" :active="request()->routeIs('providers.*')">
|
||||
{{ __('Providers') }}
|
||||
</x-responsive-nav-link>
|
||||
<x-responsive-nav-link :href="route('buyers.index')" :active="request()->routeIs('buyers.*')">
|
||||
{{ __('Buyers') }}
|
||||
</x-responsive-nav-link>
|
||||
<x-responsive-nav-link :href="route('feed.index')" :active="request()->routeIs('feed.*')">
|
||||
{{ __('Feed') }}
|
||||
</x-responsive-nav-link>
|
||||
<x-responsive-nav-link :href="route('jobs.index')" :active="request()->routeIs('jobs.*')">
|
||||
{{ __('Jobs') }}
|
||||
</x-responsive-nav-link>
|
||||
<x-responsive-nav-link :href="route('work-orders.index')" :active="request()->routeIs('work-orders.*')">
|
||||
{{ __('Work Orders') }}
|
||||
</x-responsive-nav-link>
|
||||
</div>
|
||||
|
||||
<!-- Responsive Settings Options -->
|
||||
<div class="pt-4 pb-1 border-t border-gray-200">
|
||||
<div class="px-4">
|
||||
<div class="font-medium text-base text-gray-800">{{ Auth::user()->name }}</div>
|
||||
<div class="font-medium text-sm text-gray-500">{{ Auth::user()->email }}</div>
|
||||
</div>
|
||||
@auth
|
||||
<div class="px-4">
|
||||
<div class="font-medium text-base text-gray-800">{{ Auth::user()->name }}</div>
|
||||
<div class="font-medium text-sm text-gray-500">{{ Auth::user()->email }}</div>
|
||||
</div>
|
||||
@endauth
|
||||
|
||||
<div class="mt-3 space-y-1">
|
||||
<x-responsive-nav-link :href="route('profile.edit')">
|
||||
{{ __('Profile') }}
|
||||
</x-responsive-nav-link>
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
|
||||
<x-responsive-nav-link :href="route('logout')"
|
||||
onclick="event.preventDefault();
|
||||
this.closest('form').submit();">
|
||||
{{ __('Log Out') }}
|
||||
@auth
|
||||
<x-responsive-nav-link :href="route('profile.edit')">
|
||||
{{ __('Profile') }}
|
||||
</x-responsive-nav-link>
|
||||
</form>
|
||||
@role('provider')
|
||||
<x-responsive-nav-link :href="route('providers.edit')">
|
||||
{{ __('Provider Profile') }}
|
||||
</x-responsive-nav-link>
|
||||
@endrole
|
||||
@role('buyer')
|
||||
<x-responsive-nav-link :href="route('buyers.edit')">
|
||||
{{ __('Buyer Profile') }}
|
||||
</x-responsive-nav-link>
|
||||
@endrole
|
||||
|
||||
<!-- Authentication -->
|
||||
<form method="POST" action="{{ route('logout') }}">
|
||||
@csrf
|
||||
|
||||
<x-responsive-nav-link :href="route('logout')"
|
||||
onclick="event.preventDefault();
|
||||
this.closest('form').submit();">
|
||||
{{ __('Log Out') }}
|
||||
</x-responsive-nav-link>
|
||||
</form>
|
||||
@else
|
||||
<x-responsive-nav-link :href="route('login')">
|
||||
{{ __('Log in') }}
|
||||
</x-responsive-nav-link>
|
||||
<x-responsive-nav-link :href="route('register')">
|
||||
{{ __('Register') }}
|
||||
</x-responsive-nav-link>
|
||||
@endauth
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user