1import{r as s,q as d,j as e,$ as p,m as h}from"./app-B1zCEdht.js";import{D as u}from"./DashboardLayout-BLvXkXtq.js";import{F as m}from"./CheckCircleIcon-Cu1hKk0l.js";import{F as x}from"./DocumentCheckIcon-FTkj9hOr.js";import{F as f}from"./XCircleIcon-CT8g4D7b.js";import{F as w}from"./UserPlusIcon-B6pBhwWD.js";import"./SubNavbar-DQ7EKFjn.js";import"./Navbar-yHDWR6Bb.js";function g({title:t,titleId:a,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":a},r),t?s.createElement("title",{id:a},t):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const n=s.forwardRef(g);function $(){const{stats:t,recentApplications:a,auth:r}=d().props,i=r.user,[b,v]=s.useState(!1),[N,R]=s.useState(null),l=[{label:"Total Applications Received",count:t.total,icon:e.jsx(m,{className:"w-6 h-6"})},{label:"Pending with Clerk",count:t.pendingwithdh,status:"pendingwithdh",icon:e.jsx(n,{className:"w-6 h-6"})},{label:"Pending with Tehsil",count:t.pendingwithth,status:"pendingwithth",icon:e.jsx(n,{className:"w-6 h-6"})},{label:"Certificate Issuedddd",count:t.certified,status:"certified",icon:e.jsx(x,{className:"w-6 h-6"})},{label:"Rejected Applications",count:t.rejected,status:"rejected",icon:e.jsx(f,{className:"w-6 h-6"})},{label:"Appeals Received",count:t.appealed,status:"appealed",icon:e.jsx(w,{className:"w-6 h-6"})}];return e.jsx("div",{className:"min-h-screen flex flex-col bg-gray-50 pt-[105px]",children:e.jsxs(u,{children:[e.jsx(p,{title:"DC Dashboard"}),e.jsx("div",{className:"space-y-6 flex-grow",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:l.map((o,c)=>e.jsx(j,{label:o.label,count:o.count,icon:o.icon,onClick:()=>h.get(route("admin.applications.indexadmin"),{status:o.status,district:i.district})},c))})})]})})}function j({label:t,count:a,icon:r,onClick:i}){return e.jsxs("div",{onClick:i,className:"flex items-center p-6 rounded-lg shadow bg-white hover:shadow-lg transition cursor-pointer",children:[e.jsx("div",{className:"p-4 rounded-full bg-purple-100 text-indigo-600",children:r}),e.jsxs("div",{className:"ml-6",children:[e.jsx("h3",{className:"text-base font-semibold text-gray-600",children:t}),e.jsx("p",{className:"text-3xl font-extrabold text-gray-900",children:(a??0).toLocaleString()})]})]})}export{$ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.