@ -3,19 +3,86 @@
@ section ( 'body' )
< div class = " h-screen flex overflow-hidden bg-gray-100 " x - data = " { sidebarOpen: false } " @ keydown . window . escape = " sidebarOpen = false " >
< x - sidebar . wrapper >
<!-- 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 " >
@ yield ( 'sidebar' )
</ 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 >
< 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 >
<!-- Static sidebar for desktop -->
< div class = " hidden md:flex md:flex-shrink-0 " >
< div class = " flex flex-col w-64 border-r border-gray-200 bg-green-800 " >
< div class = " h-0 flex-1 flex flex-col pt-5 pb-4 overflow-y-auto " >
< div class = " flex items-center flex-shrink-0 px-4 " >
< x - logo class = " h-14 w-auto mx-auto " />
</ div >
<!-- Sidebar component , swap this element with another sidebar if you like -->
< nav class = " mt-5 space-y-1 flex-1 px-2 bg-green-800 " >
@ yield ( 'sidebar' )
</ nav >
</ div >
< div class = " flex-shrink-0 flex border-t border-green-700 p-4 " >
< a href = " /profile " class = " flex-shrink-0 w-full group block " >
< div class = " flex items-center " >
< div >
< img class = " inline-block h-9 w-9 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 >
{{ __ ( 'sidebar.dashboard' ) }}
</ x - sidebar . item >
< div class = " ml-3 " >
< p class = " text-sm leading-5 font-medium text-white " >
{{ auth () -> user () -> name }}
</ p >
</ x - sidebar . wrapper >
< p class = " text-xs leading-4 font-medium text-green-300 group-hover:text-green-100 transition ease-in-out duration-150 " >
{{ __ ( 'sidebar.profile' ) }}
</ p >
</ div >
</ div >
</ a >
</ div >
</ div >
</ div >
< div class = " flex flex-col w-0 flex-1 overflow-hidden " >