mirror of
https://github.com/10h30/Test-Laravel-Blade-Basics.git
synced 2026-07-11 18:56:15 +09:00
60 lines
3.2 KiB
PHP
60 lines
3.2 KiB
PHP
<nav x-data="{ open: false }" class="bg-white border-b border-gray-100">
|
|
<!-- 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="flex-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('users')" :active="request()->routeIs('users')">
|
|
{{ __('Users') }}
|
|
</x-nav-link>
|
|
<x-nav-link :href="route('alert')" :active="request()->routeIs('alert')">
|
|
{{ __('Security alert') }}
|
|
</x-nav-link>
|
|
<x-nav-link :href="route('table')" :active="request()->routeIs('table')">
|
|
{{ __('Table') }}
|
|
</x-nav-link>
|
|
<x-nav-link :href="route('rows')" :active="request()->routeIs('rows')">
|
|
{{ __('Rows') }}
|
|
</x-nav-link>
|
|
<x-nav-link :href="route('authenticated')" :active="request()->routeIs('authenticated')">
|
|
{{ __('Authenticated?') }}
|
|
</x-nav-link>
|
|
<x-nav-link :href="route('include')" :active="request()->routeIs('include')">
|
|
{{ __('Include') }}
|
|
</x-nav-link>
|
|
<x-nav-link :href="route('layout')" :active="request()->routeIs('layout')">
|
|
{{ __('Layout') }}
|
|
</x-nav-link>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Hamburger -->
|
|
<div class="-mr-2 flex items-center sm:hidden">
|
|
<button @click="open = ! open" 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:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out">
|
|
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
|
|
<path :class="{'hidden': open, 'inline-flex': ! open }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
|
<path :class="{'hidden': ! open, 'inline-flex': open }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Responsive Navigation Menu -->
|
|
<div :class="{'block': open, 'hidden': ! open}" class="hidden sm:hidden">
|
|
<div class="pt-2 pb-3 space-y-1">
|
|
<x-responsive-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
|
{{ __('Dashboard') }}
|
|
</x-responsive-nav-link>
|
|
</div>
|
|
</div>
|
|
</nav>
|