import{n as e,r as t,t as n}from"./app-Cl8XxplU.js";import{S as r,d as i,m as a}from"./fa-DPOKBqVt.js";import{t as o}from"./PublicLayout-DIH6a5jJ.js";import{t as s}from"./PageBanner-2cwFv2q8.js";var c=n(),l=[{id:1,name:`حمام السباحة`,icon:(0,c.jsx)(r,{className:`text-4xl text-sky-600`}),desc:`حمام سباحة مفتوح على مدار العام بمعايير دولية، مناسب للعائلات والأفراد.`,color:`bg-blue-50 border-blue-200`},{id:2,name:`الشاليهات`,icon:(0,c.jsx)(a,{className:`text-4xl text-green-600`}),desc:`شاليهات مجهزة بالكامل للإقامة وقضاء العطلات بأجواء هادئة ومريحة.`,color:`bg-green-50 border-green-200`},{id:5,name:`الملاعب الرياضية`,icon:(0,c.jsx)(i,{className:`text-4xl text-amber-600`}),desc:`ملاعب كرة قدم وكرة طائرة وتنس وأنشطة رياضية متنوعة.`,color:`bg-amber-50 border-amber-200`}];function u({latestNews:n}){return(0,c.jsxs)(o,{children:[(0,c.jsx)(e,{title:`الرئيسية`}),(0,c.jsx)(s,{title:`الرئيسية`}),(0,c.jsx)(`section`,{className:`bg-white border-b border-gray-100`,children:(0,c.jsx)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4`,children:(0,c.jsx)(`div`,{className:`flex flex-wrap justify-center gap-4`,children:[{href:route(`about`),label:`عن النادي`},{href:route(`services`),label:`خدماتنا`},{href:route(`news.index`),label:`آخر الأخبار`},{href:route(`contact`),label:`تواصل معنا`}].map(e=>(0,c.jsx)(t,{href:e.href,className:`text-sm font-medium text-gray-600 hover:text-amber-700 border border-gray-200 rounded-full px-5 py-1.5 hover:border-amber-300 transition-colors`,children:e.label},e.label))})})}),(0,c.jsxs)(`section`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16`,children:[(0,c.jsxs)(`div`,{className:`text-center mb-10`,children:[(0,c.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900 mb-2`,children:`مرافق النادي`}),(0,c.jsx)(`p`,{className:`text-gray-500`,children:`اكتشف ما يقدمه نادي الإيمان من خدمات ومرافق متكاملة`})]}),(0,c.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`,children:[l.map(e=>(0,c.jsxs)(`div`,{className:`rounded-2xl border p-6 ${e.color} hover:shadow-md transition-shadow`,children:[(0,c.jsx)(`div`,{className:`text-4xl mb-3`,children:e.icon}),(0,c.jsx)(`h3`,{className:`text-lg font-semibold text-gray-900 mb-2`,children:e.name}),(0,c.jsx)(`p`,{className:`text-sm text-gray-600 leading-relaxed`,children:e.desc})]},e.id)),(0,c.jsxs)(`div`,{className:`rounded-2xl border border-dashed border-gray-300 p-6 flex flex-col items-center justify-center text-center hover:border-amber-400 transition-colors group`,children:[(0,c.jsx)(`p`,{className:`text-gray-500 group-hover:text-amber-700 text-sm mb-3`,children:`اكتشف المزيد من خدماتنا`}),(0,c.jsx)(t,{href:route(`services`),className:`text-sm font-medium text-amber-700 hover:underline`,children:`عرض جميع الخدمات ←`})]})]})]}),n&&n.length>0&&(0,c.jsx)(`section`,{className:`bg-gray-50 py-16`,children:(0,c.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`,children:[(0,c.jsxs)(`div`,{className:`flex items-center justify-between mb-8`,children:[(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h2`,{className:`text-3xl font-bold text-gray-900`,children:`آخر الأخبار`}),(0,c.jsx)(`p`,{className:`text-gray-500 mt-1`,children:`تابع أحدث أخبار وفعاليات نادي الإيمان`})]}),(0,c.jsx)(t,{href:route(`news.index`),className:`text-sm font-medium text-amber-700 hover:underline hidden sm:block`,children:`كل الأخبار ←`})]}),(0,c.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`,children:n.map(e=>(0,c.jsxs)(t,{href:route(`news.show`,e.slug),className:`group bg-white rounded-xl border border-gray-200 overflow-hidden hover:shadow-md transition-shadow`,children:[e.image&&(0,c.jsx)(`img`,{src:`http://localhost/ElemanClub/aliman-admin/public/storage/${e.image}`,alt:e.title,className:`w-full h-44 object-cover`}),(0,c.jsxs)(`div`,{className:`p-5`,children:[(0,c.jsx)(`p`,{className:`text-xs text-gray-400 mb-1`,children:new Date(e.published_at||e.created_at).toLocaleDateString(`ar-EG`)}),(0,c.jsx)(`h3`,{className:`font-semibold text-gray-900 group-hover:text-amber-700 transition-colors line-clamp-2`,children:e.title}),e.summary&&(0,c.jsx)(`p`,{className:`text-sm text-gray-500 mt-2 line-clamp-2`,children:e.summary})]})]},e.id))})]})}),(0,c.jsx)(`section`,{className:`bg-amber-700 text-white py-16`,children:(0,c.jsxs)(`div`,{className:`max-w-4xl mx-auto px-4 text-center`,children:[(0,c.jsx)(`h2`,{className:`text-3xl font-bold mb-4`,children:`تواصل معنا`}),(0,c.jsx)(`p`,{className:`text-amber-100 text-lg mb-8`,children:`يسعدنا الإجابة على استفساراتك والتواصل معك لأي استفسار.`}),(0,c.jsx)(t,{href:route(`contact`),className:`inline-flex items-center justify-center rounded-xl bg-white text-amber-800 px-10 py-3 text-base font-semibold hover:bg-amber-50 transition-colors shadow`,children:`تواصل معنا`})]})})]})}export{u as default};