@extends('layouts.base')
|
|
|
|
@section('body')
|
|
<div class="h-screen flex overflow-hidden bg-gray-100" x-data="{ sidebarOpen: false }" @keydown.window.escape="sidebarOpen = false">
|
|
|
|
<x-sidebar.wrapper>
|
|
|
|
<x-sidebar.item href="{{ route('home') }}">
|
|
<x-slot name="icon">
|
|
<svg stroke="currentColor" fill="none" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l9-9 9 9M5 10v10a1 1 0 001 1h3a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1h3a1 1 0 001-1V10M9 21h6"></path>
|
|
</svg>
|
|
</x-slot>
|
|
|
|
{{ __('sidebar.dashboard') }}
|
|
</x-sidebar.item>
|
|
|
|
</x-sidebar.wrapper>
|
|
|
|
<div class="flex flex-col w-0 flex-1 overflow-hidden">
|
|
|
|
<div class="md:hidden pl-1 pt-1 sm:pl-3 sm:pt-3">
|
|
<button @click.stop="sidebarOpen = true" class="-ml-0.5 -mt-0.5 h-12 w-12 inline-flex items-center justify-center rounded-md text-gray-500 hover:text-gray-900 focus:outline-none focus:bg-gray-200 transition ease-in-out duration-150" aria-label="Open sidebar">
|
|
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
|
|
<main class="flex-1 relative z-0 overflow-y-auto pt-2 pb-6 focus:outline-none md:py-6" tabindex="0" x-data="" x-init="$el.focus()">
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8">
|
|
@yield('content')
|
|
</div>
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
@endsection
|