1import{j as s}from"./vendor-markdown-Daxr8BJC.js";import{G as j,C as a,t,u as r,D as i,d as o,L as d,b as c,g,A as n,B as N,F as b}from"./index-DVHzHwfb.js";import"./vendor-charts-qvx8-m0G.js";import"./vendor-pdf-SjvVsPhg.js";const y=()=>{var l;const{userProfile:e,loading:m,isAuthenticated:h}=j(),x=()=>e!=null&&e.school_id?"School Dashboard":e!=null&&e.district_id?"District Dashboard":"SWYE360 EdTech Analytics Dashboard";return m?s.jsx("div",{className:"flex flex-col min-h-screen bg-gray-50 dark:bg-slate-950",children:s.jsx("div",{className:"container mx-auto py-8",children:s.jsxs("div",{className:"animate-pulse",children:[s.jsx("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-4"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2 mb-8"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsx("div",{className:"h-40 bg-gray-200 rounded"}),s.jsx("div",{className:"h-40 bg-gray-200 rounded"}),s.jsx("div",{className:"h-40 bg-gray-200 rounded"})]})]})})}):h?s.jsx("div",{className:"flex flex-col min-h-screen bg-gray-50 dark:bg-slate-950",children:s.jsx("div",{className:"container mx-auto py-8",children:s.jsxs(a,{className:"border-l-4 border-blue-500",children:[s.jsxs(t,{children:[s.jsx(r,{children:x()}),s.jsxs(i,{children:["Welcome ",(e==null?void 0:e.first_name)||(e==null?void 0:e.display_name)||((l=e==null?void 0:e.email)==null?void 0:l.split("@")[0])||"User","! Explore ROI metrics, software recommendations, and usage patterns for your organization."]})]}),s.jsx(o,{children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[s.jsxs(a,{className:"p-6 hover:shadow-md transition-shadow",children:[s.jsxs("div",{className:"flex items-center mb-4 text-primary",children:[s.jsx(g,{className:"h-6 w-6 mr-2"}),s.jsx(r,{className:"text-xl",children:"ROI Dashboard"})]}),s.jsx(i,{className:"mb-4",children:"Analyze the return on investment for your educational software and track district performance."}),s.jsx(d,{to:"/roi-dashboard",children:s.jsxs(c,{children:["View Dashboard",s.jsx(n,{className:"ml-2 h-4 w-4"})]})})]}),s.jsxs(a,{className:"p-6 hover:shadow-md transition-shadow",children:[s.jsxs("div",{className:"flex items-center mb-4 text-primary",children:[s.jsx(N,{className:"h-6 w-6 mr-2"}),s.jsx(r,{className:"text-xl",children:"AI Recommendations"})]}),s.jsx(i,{className:"mb-4",children:"Discover AI-powered software recommendations tailored for your district's needs."}),s.jsx(d,{to:"/edtech-ai-recommendations",children:s.jsxs(c,{children:["Explore Recommendations",s.jsx(n,{className:"ml-2 h-4 w-4"})]})})]}),s.jsxs(a,{className:"p-6 hover:shadow-md transition-shadow",children:[s.jsxs("div",{className:"flex items-center mb-4 text-primary",children:[s.jsx(b,{className:"h-6 w-6 mr-2"}),s.jsx(r,{className:"text-xl",children:"Reports"})]}),s.jsx(i,{className:"mb-4",children:"Access comprehensive reports on software usage, compliance, and district performance."}),s.jsx(d,{to:"/reports",children:s.jsxs(c,{children:["View Reports",s.jsx(n,{className:"ml-2 h-4 w-4"})]})})]})]})})]})})}):s.jsx("div",{className:"flex flex-col min-h-screen bg-gray-50 dark:bg-slate-950",children:s.jsx("div",{className:"container mx-auto py-8",children:s.jsxs(a,{className:"border-l-4 border-red-500",children:[s.jsxs(t,{children:[s.jsx(r,{children:"Authentication Required"}),s.jsx(i,{children:"Please log in to access the dashboard."})]}),s.jsx(o,{children:s.jsx(d,{to:"/login",children:s.jsx(c,{children:"Go to Login"})})})]})})})};export{y 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.