import{a as e,r as t,s as n,t as r}from"./app-Cl8XxplU.js";import{D as i,n as a,s as o}from"./fa-DPOKBqVt.js";var s=r();function c({href:e,children:n,active:r}){return(0,s.jsx)(t,{href:e,className:`flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors ${r?`bg-amber-50 text-amber-800 border border-amber-200`:`text-gray-600 hover:bg-gray-100 hover:text-gray-900`}`,children:n})}function l({children:r}){let{auth:l}=e().props;return(0,s.jsxs)(`div`,{className:`min-h-screen bg-gray-50 flex flex-col`,children:[(0,s.jsx)(`header`,{className:`bg-white border-b border-gray-200 sticky top-0 z-40`,children:(0,s.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between`,children:[(0,s.jsxs)(t,{href:route(`home`),className:`flex items-center gap-3`,children:[(0,s.jsx)(`img`,{src:`/ElemanClub/aliman-website/public/images/logo.png`,alt:`نادي الإيمان`,className:`h-9 w-auto object-contain`}),(0,s.jsx)(`span`,{className:`font-bold text-gray-800`,children:`نادي الإيمان`})]}),(0,s.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,s.jsxs)(`span`,{className:`text-sm text-gray-600 hidden sm:block`,children:[`مرحباً، `,(0,s.jsx)(`span`,{className:`font-medium text-gray-900`,children:l.user.name})]}),(0,s.jsx)(`button`,{onClick:()=>{n.post(route(`logout`))},className:`text-sm text-gray-500 hover:text-red-600 transition-colors`,children:`تسجيل الخروج`})]})]})}),(0,s.jsxs)(`div`,{className:`flex flex-1 max-w-7xl mx-auto w-full px-4 sm:px-6 lg:px-8 py-8 gap-8`,children:[(0,s.jsx)(`aside`,{className:`w-56 flex-shrink-0 hidden md:block`,children:(0,s.jsxs)(`nav`,{className:`space-y-1 bg-white rounded-xl border border-gray-200 p-3`,children:[(0,s.jsxs)(c,{href:route(`portal.bookings`),active:route().current(`portal.bookings`),children:[(0,s.jsx)(a,{className:`w-4 h-4 shrink-0`}),` حجوزاتي`]}),(0,s.jsxs)(c,{href:route(`portal.payments`),active:route().current(`portal.payments`),children:[(0,s.jsx)(o,{className:`w-4 h-4 shrink-0`}),` المدفوعات`]}),(0,s.jsxs)(c,{href:route(`portal.profile`),active:route().current(`portal.profile`),children:[(0,s.jsx)(i,{className:`w-4 h-4 shrink-0`}),` الملف الشخصي`]})]})}),(0,s.jsx)(`div`,{className:`md:hidden w-full fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-40 flex`,children:[{href:route(`portal.bookings`),label:`حجوزاتي`,name:`portal.bookings`},{href:route(`portal.payments`),label:`المدفوعات`,name:`portal.payments`},{href:route(`portal.profile`),label:`حسابي`,name:`portal.profile`}].map(e=>(0,s.jsx)(t,{href:e.href,className:`flex-1 py-3 text-xs font-medium text-center transition-colors ${route().current(e.name)?`text-amber-700`:`text-gray-500`}`,children:e.label},e.name))}),(0,s.jsx)(`main`,{className:`flex-1 min-w-0 pb-16 md:pb-0`,children:r})]})]})}export{l as t};