import{u as r,j as e,H as o}from"./app-D8BFnB1M.js";import{A as i,U as d,C as n,F as c}from"./AppLayout-BvQ66_WC.js";import{T as m}from"./trending-up-EaBAprs3.js";import{B as b}from"./building-2-7P3v_Sft.js";/* empty css            */import"./user-BhESsK0d.js";const x=[{key:"total_staff",label:"Total Staff",icon:d,color:"text-blue-600",bg:"bg-blue-50",border:"border-blue-100"},{key:"total_companies",label:"Companies",icon:b,color:"text-emerald-600",bg:"bg-emerald-50",border:"border-emerald-100"},{key:"pending_changes",label:"Pending Changes",icon:n,color:"text-amber-600",bg:"bg-amber-50",border:"border-amber-100"},{key:"applications",label:"Applications",icon:c,color:"text-violet-600",bg:"bg-violet-50",border:"border-violet-100"}];function v({stats:t}){const{auth:l}=r().props,a=l?.user;return e.jsxs(i,{title:"Dashboard",children:[e.jsx(o,{title:"Dashboard"}),e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"overflow-hidden rounded-xl bg-gradient-to-r from-blue-600 to-blue-700 px-6 py-5 text-white shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(m,{className:"h-8 w-8 opacity-80"}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-lg font-semibold",children:["Welcome back",a?.name?`, ${a.name.split(" ")[0]}`:"","!"]}),e.jsxs("p",{className:"mt-0.5 text-sm text-blue-100 capitalize",children:[a?.role?.replace("_"," ")," — HR Staff Management Portal"]})]})]})}),e.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:x.map(s=>e.jsx("div",{className:`rounded-xl border ${s.border} bg-white p-5 shadow-sm`,children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-gray-500",children:s.label}),e.jsx("p",{className:"mt-2 text-3xl font-bold text-gray-900",children:t[s.key].toLocaleString()})]}),e.jsx("div",{className:`${s.bg} rounded-xl p-2.5`,children:e.jsx(s.icon,{className:`h-5 w-5 ${s.color}`})})]})},s.key))}),e.jsxs("div",{className:"rounded-xl border border-gray-200 bg-white p-6 shadow-sm",children:[e.jsx("h2",{className:"mb-1 text-sm font-semibold text-gray-900",children:"Getting Started"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Use the sidebar to navigate between sections. Staff records, applications, leave allocation, announcements, and more will be available as each module is built out."})]})]})]})}export{v as default};
