diaREact/resources/views/layouts/navigation.blade.php

42 lines
1.7 KiB
PHP
Raw Permalink Normal View History

<nav class="bg-white border-b border-gray-100">
2022-02-11 17:26:15 +01:00
<!-- Primary Navigation Menu -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex">
<!-- Logo -->
<div class="shrink-0 flex items-center">
<a href="{{ route('dashboard') }}">
<x-application-logo class="block h-10 w-auto fill-current text-gray-600" />
</a>
</div>
<!-- Navigation Links -->
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
<x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
{{ __('Dashboard') }}
</x-nav-link>
</div>
</div>
<!-- Settings Dropdown -->
<div class="hidden sm:flex sm:items-center sm:ml-6">
<div id="menu" data-user="{{ Auth::user()->name }}"></div>
2022-02-11 17:26:15 +01:00
<!-- Authentication -->
<form method="POST" action="{{ route('logout') }}" style="display: none;" id="logout-form">
2022-02-11 17:26:15 +01:00
@csrf
<x-dropdown-link :href="route('logout')"
onclick="event.preventDefault();
this.closest('form').submit();">
2022-02-11 17:26:15 +01:00
{{ __('Log Out') }}
</x-dropdown-link>
2022-02-11 17:26:15 +01:00
</form>
</div>
<!-- Hamburger -->
<div class="-mr-2 flex items-center sm:hidden">
<div id="mobile-menu" data-user="{{ Auth::user()->name }}"></div>
</div>
2022-02-11 17:26:15 +01:00
</div>
</div>
</nav>