import{j as e,H as o,L as m,ch as a,cY as l}from"./vendor-rThclpOQ.js";import{B as i}from"./button-ZcsoqUQn.js";import{C as c}from"./card-HXna_7vU.js";import{D as p}from"./layout-Dtu8Rjtg.js";import d from"./marksheet-card-FlA_0SkA.js";import"./index-DquVdLUg.js";import"./utils-8KAaAB9H.js";import"./sidebar-Buyv7mEV.js";import"./separator-Cir9hccx.js";import"./sheet-BfC102Vr.js";import"./tooltip-WOIaUmuC.js";import"./main-CC75Iw88.js";import"./sonner-CgbrDmPW.js";import"./index-CWNIUFqh.js";import"./appearance-Bwg83W1G.js";import"./dropdown-menu-Cm0H42C1.js";import"./app-BsPpMpSR.js";/* empty css            */import"./language-BmlkXzFK.js";import"./notification-Bti7isEF.js";import"./popover-otAaS-4X.js";import"./scroll-area-BCwyUKIK.js";import"./app-logo-Bj2M2lhk.js";import"./accordion-by19KtHq.js";import"./route-B4ZMN77y.js";import"./avatar-BsP_s7dr.js";import"./use-lang-BK6P2WMc.js";import"./dialog-CDEDwQhm.js";import"./marksheet-preview-B28bhn9e.js";const x=({templates:s})=>{s.filter(t=>t.type==="exam");const r=s.filter(t=>t.type==="course");return e.jsxs(e.Fragment,{children:[e.jsx(o,{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(m,{href:route("marksheet.templates.create"),children:e.jsxs(i,{children:[e.jsx(a,{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(l,{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(m,{href:route("marksheet.templates.create"),children:e.jsxs(i,{children:[e.jsx(a,{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(t=>e.jsx(d,{type:"course",template:t},t.id))})]})]})]})};x.layout=s=>e.jsx(p,{children:s});export{x as default};
