29 lines
1.2 KiB
PHP
29 lines
1.2 KiB
PHP
<header class="flex items-center justify-between px-4 py-3 bg-white shadow">
|
|
<div class="flex items-center">
|
|
<button id="menu-toggle" class="mr-4 text-gray-600 md:hidden focus:outline-none">☰</button>
|
|
<h1 class="text-xl font-semibold">Dashboard</h1>
|
|
</div>
|
|
|
|
<div class="items-center hidden gap-4 md:flex">
|
|
@include('components.navbarprofile')
|
|
</div>
|
|
|
|
<div class="relative md:hidden">
|
|
<button id="mobile-profile-btn" class="flex items-center gap-2 text-sm text-gray-700 focus:outline-none">
|
|
<span>{{ Auth::user()->name }}</span>
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7" />
|
|
</svg>
|
|
</button>
|
|
<div id="mobile-profile-menu" class="absolute right-0 z-10 hidden w-40 mt-2 bg-white border border-gray-200 rounded shadow">
|
|
<a href="#" class="block px-4 py-2 text-gray-700 hover:bg-gray-100">Profile</a>
|
|
<form method="POST" action="{{ route('logout') }}">
|
|
@csrf
|
|
<button type="submit" class="block w-full px-4 py-2 text-left text-gray-700 hover:bg-gray-100">
|
|
{{ __('Log Out') }}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</header>
|