|
|
<!-- Off-canvas menu for mobile -->
|
|
|
<div x-show="sidebarOpen" class="md:hidden" style="display: none;">
|
|
|
<div class="fixed inset-0 flex z-40">
|
|
|
<div @click="sidebarOpen = false" x-show="sidebarOpen" x-description="Off-canvas menu overlay, show/hide based on off-canvas menu state." x-transition:enter="transition-opacity ease-linear duration-300" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" x-transition:leave="transition-opacity ease-linear duration-300" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" class="fixed inset-0" style="display: none;">
|
|
|
<div class="absolute inset-0 bg-gray-600 opacity-75"></div>
|
|
|
</div>
|
|
|
<div x-show="sidebarOpen" x-description="Off-canvas menu, show/hide based on off-canvas menu state." x-transition:enter="transition ease-in-out duration-300 transform" x-transition:enter-start="-translate-x-full" x-transition:enter-end="translate-x-0" x-transition:leave="transition ease-in-out duration-300 transform" x-transition:leave-start="translate-x-0" x-transition:leave-end="-translate-x-full" class="relative flex-1 flex flex-col max-w-xs w-full bg-green-800" style="display: none;">
|
|
|
<div class="absolute top-0 right-0 -mr-14 p-1">
|
|
|
<button x-show="sidebarOpen" @click="sidebarOpen = false" class="flex items-center justify-center h-12 w-12 rounded-full focus:outline-none focus:bg-gray-600" aria-label="Close sidebar" style="display: none;">
|
|
|
<svg class="h-6 w-6 text-white" stroke="currentColor" fill="none" 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 class="flex-1 h-0 pt-5 pb-4 overflow-y-auto">
|
|
|
<div class="flex-shrink-0 flex items-center px-4">
|
|
|
<x-logo class="h-14 w-auto mx-auto" />
|
|
|
</div>
|
|
|
<nav class="mt-5 px-2 space-y-1">
|
|
|
{{ $slot }}
|
|
|
</nav>
|
|
|
</div>
|
|
|
<div class="flex-shrink-0 flex border-t border-green-700 p-4">
|
|
|
<a href="/profile" class="flex-shrink-0 group block focus:outline-none">
|
|
|
<div class="flex items-center">
|
|
|
<div>
|
|
|
<img class="inline-block h-10 w-10 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
|
|
|
</div>
|
|
|
<div class="ml-3">
|
|
|
<p class="text-base leading-6 font-medium text-white">
|
|
|
{{ auth()->user()->name }}
|
|
|
</p>
|
|
|
<p class="text-sm leading-5 font-medium text-green-300 group-hover:text-green-100 group-focus:underline transition ease-in-out duration-150">
|
|
|
{{ __('sidebar.profile') }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex-shrink-0 w-14">
|
|
|
<!-- Force sidebar to shrink to fit close icon -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|