import{_ as m,G as g,H as l,c as n,a as t,t as a,u as p,J as h,K as _,L as f,A as v,o as u,e as b,w as k,n as y,M as P,N as w}from"./index-0UBdiff-.js";const x={class:"page"},G={class:"page-header"},M={class:"tile-grid"},V={__name:"Dashboard",setup(S){const o=v({productGroups:0,imports:0,styles:0});g(async()=>{const[i,e]=await Promise.all([l.getProductGroups(),l.getImports()]);o.value.productGroups=i.data.length,o.value.imports=e.data.length});const d=[{title:"Product Groups",desc:"Manage brands, groups and their styles.",to:"/product-groups",icon:"pi pi-sitemap",accent:"var(--module-product-groups)"},{title:"Pricing & Costing",desc:"Review costings, adjust prices, submit for approval.",to:"/pricing",icon:"pi pi-tags",accent:"var(--module-pricing)"},{title:"Import Management",desc:"Onboard supplier price files through the classification wizard.",to:"/imports",icon:"pi pi-file-import",accent:"var(--module-imports)"},{title:"Stock",desc:"View on-hand and allocated stock by style.",to:"/stock",icon:"pi pi-box",accent:"var(--module-stock)"}];return(i,e)=>{var c,r;return u(),n("div",x,[t("div",G,[t("div",null,[t("h1",null,"Welcome back, "+a((r=(c=p(h).user)==null?void 0:c.name)==null?void 0:r.split(" ")[0]),1),e[0]||(e[0]=t("p",{class:"page-subtitle"},"This is a proof-of-concept build of the Medicus platform on a plain PHP + Vue/PrimeVue stack.",-1))])]),t("div",M,[(u(),n(_,null,f(d,s=>b(p(w),{key:s.to,to:s.to,class:"tile",style:P({"--accent-color":s.accent})},{default:k(()=>[t("i",{class:y(s.icon)},null,2),t("h3",null,a(s.title),1),t("p",null,a(s.desc),1)]),_:2},1032,["to","style"])),64))])])}}},B=m(V,[["__scopeId","data-v-9f775949"]]);export{B as default};
