(()=>{var e={};e.id=940,e.ids=[940],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},55315:e=>{"use strict";e.exports=require("path")},17360:e=>{"use strict";e.exports=require("url")},31428:(e,s,a)=>{"use strict";a.r(s),a.d(s,{GlobalError:()=>o.a,__next_app__:()=>u,originalPathname:()=>m,pages:()=>c,routeModule:()=>p,tree:()=>d}),a(85375),a(51347),a(30935),a(26083),a(96560);var r=a(23191),t=a(88716),n=a(37922),o=a.n(n),l=a(95231),i={};for(let e in l)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(i[e]=()=>l[e]);a.d(s,i);let d=["",{children:["systemadmin",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(a.bind(a,85375)),"/Users/ferlando/Desktop/baboon-nextjs/app/systemadmin/page.tsx"]}]},{layout:[()=>Promise.resolve().then(a.bind(a,51347)),"/Users/ferlando/Desktop/baboon-nextjs/app/systemadmin/layout.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(a.bind(a,24697))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(a.bind(a,30935)),"/Users/ferlando/Desktop/baboon-nextjs/app/layout.tsx"],error:[()=>Promise.resolve().then(a.bind(a,26083)),"/Users/ferlando/Desktop/baboon-nextjs/app/error.tsx"],"not-found":[()=>Promise.resolve().then(a.bind(a,96560)),"/Users/ferlando/Desktop/baboon-nextjs/app/not-found.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(a.bind(a,24697))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["/Users/ferlando/Desktop/baboon-nextjs/app/systemadmin/page.tsx"],m="/systemadmin/page",u={require:a,loadChunk:()=>Promise.resolve()},p=new r.AppPageRouteModule({definition:{kind:t.x.APP_PAGE,page:"/systemadmin/page",pathname:"/systemadmin",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},6850:(e,s,a)=>{Promise.resolve().then(a.bind(a,47232))},35303:()=>{},47232:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>n});var r=a(10326),t=a(17577);function n(){let[e,s]=(0,t.useState)({}),[a,n]=(0,t.useState)(!0);if(a)return r.jsx("div",{className:"text-gray-500",children:"Loading dashboard..."});let o=[{label:"Today's Orders",value:e.todayOrders||0,color:"bg-blue-500"},{label:"Active Drivers",value:e.activeDrivers||0,color:"bg-green-500"},{label:"Total Restaurants",value:e.totalRestaurants||0,color:"bg-purple-500"},{label:"Total Users",value:e.totalUsers||0,color:"bg-orange-500"},{label:"Total Orders",value:e.totalOrders||0,color:"bg-indigo-500"},{label:"Revenue",value:`${e.revenue||0} ALL`,color:"bg-red-500"}];return(0,r.jsxs)("div",{children:[r.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Dashboard"}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:o.map(e=>(0,r.jsxs)("div",{className:"bg-white rounded-xl p-6 shadow-sm",children:[r.jsx("div",{className:`inline-block w-3 h-3 rounded-full ${e.color} mr-2`}),r.jsx("span",{className:"text-sm text-gray-500",children:e.label}),r.jsx("p",{className:"text-3xl font-bold mt-2",children:e.value})]},e.label))})]})}},51347:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>t});var r=a(19510);function t({children:e}){return(0,r.jsxs)("div",{className:"min-h-screen bg-gray-100",children:[r.jsx("nav",{className:"bg-gray-800 text-white",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 py-3 flex items-center justify-between",children:[r.jsx("a",{href:"/systemadmin",className:"text-lg font-bold",children:"Baboon Admin"}),(0,r.jsxs)("div",{className:"flex items-center gap-4 text-sm",children:[r.jsx("a",{href:"/systemadmin",className:"hover:text-orange-400",children:"Dashboard"}),r.jsx("a",{href:"/systemadmin/drivers",className:"hover:text-orange-400",children:"Drivers"}),r.jsx("a",{href:"/systemadmin/restaurants",className:"hover:text-orange-400",children:"Restaurants"}),r.jsx("a",{href:"/systemadmin/users",className:"hover:text-orange-400",children:"Users"}),r.jsx("a",{href:"/systemadmin/couriers",className:"hover:text-orange-400",children:"Couriers"})]})]})}),r.jsx("main",{className:"container mx-auto px-4 py-6",children:e})]})}},85375:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>r});let r=(0,a(68570).createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/app/systemadmin/page.tsx#default`)}};var s=require("../../webpack-runtime.js");s.C(e);var a=e=>s(s.s=e),r=s.X(0,[8948,3314,9929,5099],()=>a(31428));module.exports=r})();