2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
import{j as e,H as o,L as m,bm as a,c2 as l}from"./vendor-BKmmeuxg.js";import{B as i}from"./button-BpNwv2aE.js";import{C as c}from"./card-D9_SJYq6.js";import{D as d}from"./layout-DkwBWm5d.js";import p from"./marksheet-card-D-btXIdf.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";import"./sidebar-BYcYxQeZ.js";import"./separator-_3LZ_wAA.js";import"./sheet-DSvHVmaW.js";import"./tooltip-BsX7Z6vz.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./appearance-D2z3xcjR.js";import"./dropdown-menu-DO-po5c1.js";import"./app-BytVvUs_.js";/* empty css */import"./language-BFZ7KItL.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./scroll-area-C8HGru-R.js";import"./app-logo-CmnEIwal.js";import"./accordion-CNBvFN43.js";import"./route-B4ZMN77y.js";import"./avatar-j28afJTV.js";import"./use-lang-YfV87_zl.js";import"./dialog-B2gN9MvT.js";import"./marksheet-preview-C4ax8MzP.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(p,{type:"course",template:t},t.id))})]})]})]})};x.layout=s=>e.jsx(d,{children:s});export{x as default};
|