import{j as e,aR as l,aS as a,cO as m,d9 as o}from"./react-vendor-xYZnmIII.js";import{B as i,a as c}from"./ui-components-CQM92IK3.js";import{D as d}from"./layout-DC6VQ8xV.js";import x from"./marksheet-card-DChQ1jSX.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./main-CnGu8e_N.js";import"./theme-colors-CLpwvDr4.js";import"./appearance-5ivIjthu.js";import"./language-C7bQIqs2.js";import"./notification-C3MPMjX2.js";import"./app-logo-BQGZ7CFC.js";import"./route-D0xh7FtZ.js";import"./use-lang-Dg6I_Fym.js";import"./marksheet-preview-BgEBPnH4.js";const n=({templates:t})=>{t.filter(s=>s.type==="exam");const r=t.filter(s=>s.type==="course");return e.jsxs(e.Fragment,{children:[e.jsx(l,{title:"Certificate & Marksheet Templates"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-semibold",children:"Marksheet Templates"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Design marksheets showing course grades"})]}),e.jsx(a,{href:route("marksheet.templates.create"),children:e.jsxs(i,{children:[e.jsx(m,{className:"mr-2 h-4 w-4"}),"Create Template"]})})]}),e.jsxs("div",{className:"py-6",children:[e.jsx("h6",{className:"mb-3 text-xl font-semibold",children:"Course Marksheet Templates"}),r.length===0?e.jsx(c,{className:"p-12",children:e.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[e.jsx(o,{className:"text-muted-foreground mb-4 h-16 w-16"}),e.jsx("h3",{className:"mb-2 text-xl font-semibold",children:"No marksheet templates yet"}),e.jsx("p",{className:"text-muted-foreground mb-4",children:"Create your first marksheet template to get started"}),e.jsx(a,{href:route("marksheet.templates.create"),children:e.jsxs(i,{children:[e.jsx(m,{className:"mr-2 h-4 w-4"}),"Create Your First Template"]})})]})}):e.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:r.map(s=>e.jsx(x,{type:"course",template:s},s.id))})]})]})]})};n.layout=t=>e.jsx(d,{children:t});export{n as default};
