module.exports=[55700,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(10849),e=a.i(83497),f=a.i(78987),g=a.i(60246);let h=(0,a.i(70106).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);var i=a.i(38246);function j(){let[a,j]=(0,c.useState)({products:0,orders:0,users:0}),[k,l]=(0,c.useState)(!0);(0,c.useEffect)(()=>{!async function(){let[{count:a},{count:b},{count:c}]=await Promise.all([d.supabase.from("products").select("*",{count:"exact",head:!0}),d.supabase.from("orders").select("*",{count:"exact",head:!0}),d.supabase.from("users").select("*",{count:"exact",head:!0})]);j({products:a||0,orders:b||0,users:c||0}),l(!1)}()},[]);let m=[{label:"Total Products",value:a.products,icon:e.Package,colorClass:"bg-blue-50 text-blue-600",href:"/dnt/login/admin/dashboard/products"},{label:"Total Orders",value:a.orders,icon:f.ShoppingBag,colorClass:"bg-purple-50 text-purple-600",href:"/dnt/login/admin/dashboard/orders"},{label:"Registered Users",value:a.users,icon:g.Users,colorClass:"bg-green-50 text-green-600",href:"/dnt/login/admin/dashboard/users"},{label:"Active Today",value:"—",icon:h,colorClass:"bg-orange-50 text-orange-600",href:"#"}];return(0,b.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-bold text-gray-900 tracking-tight",children:"Dashboard Overview"}),(0,b.jsx)("p",{className:"text-gray-500 text-sm mt-1",children:"Welcome back. Here's what's happening in your store today."})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6",children:m.map(({label:a,value:c,icon:d,colorClass:e,href:f})=>(0,b.jsxs)(i.default,{href:f,className:"bg-white border border-gray-200 rounded-2xl p-6 shadow-sm hover:shadow-md hover:border-brand-primary/30 transition-all group",children:[(0,b.jsx)("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center mb-5 transition-transform group-hover:scale-110 ${e}`,children:(0,b.jsx)(d,{className:"w-6 h-6"})}),(0,b.jsx)("p",{className:"text-gray-500 text-xs font-medium mb-1 uppercase tracking-wider",children:a}),(0,b.jsx)("p",{className:"text-3xl font-bold text-gray-900 group-hover:text-brand-primary transition-colors",children:k?(0,b.jsx)("span",{className:"text-gray-300",children:"..."}):c})]},a))}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 sm:gap-6 mt-4",children:[{href:"/dnt/login/admin/dashboard/products",label:"Manage Products",desc:"Add, edit or delete products from your catalog"},{href:"/dnt/login/admin/dashboard/carousel",label:"Manage Carousel",desc:"Update homepage hero slider content and links"},{href:"/dnt/login/admin/dashboard/settings",label:"Store Settings",desc:"Configure logo, brand colors, and payment gateway keys"}].map(({href:a,label:c,desc:d})=>(0,b.jsxs)(i.default,{href:a,className:"bg-white border border-gray-200 rounded-2xl p-6 shadow-sm hover:shadow-md hover:border-brand-primary/30 transition-all group",children:[(0,b.jsx)("p",{className:"font-semibold text-gray-900 group-hover:text-brand-primary transition-colors mb-2",children:c}),(0,b.jsx)("p",{className:"text-gray-500 text-sm leading-relaxed",children:d})]},a))})]})}a.s(["default",()=>j],55700)}];

//# sourceMappingURL=src_app_dnt_login_admin_dashboard_page_tsx_dc12cd6b._.js.map