import{j as r,d9 as d,b2 as c}from"./react-vendor-xYZnmIII.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";const h=({template:l,studentName:s,courseName:a,completionDate:t,logoUrl:o})=>{const{template_data:e}=l;return r.jsxs("div",{className:"relative min-h-[500px] rounded-lg border-4 p-8 shadow-lg",style:{backgroundColor:e.backgroundColor,borderColor:e.borderColor,fontFamily:e.fontFamily},children:[r.jsx("div",{className:"mb-6 border-b-2 pb-4",style:{borderColor:e.borderColor},children:r.jsx("div",{className:"flex items-center justify-between",children:r.jsxs("div",{className:"flex items-center gap-4",children:[o||l.logo_path?r.jsx("div",{className:"h-16 w-16",children:r.jsx("img",{src:o||l.logo_path||"",alt:"Logo",className:"h-full w-full object-contain"})}):r.jsx(d,{className:"h-12 w-12",style:{color:e.primaryColor}}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-bold",style:{color:e.primaryColor,fontFamily:e.fontFamily},children:e.headerText}),r.jsx("p",{className:"text-lg",style:{color:e.secondaryColor,fontFamily:e.fontFamily},children:e.institutionName})]})]})})}),r.jsxs("div",{className:"mb-6 grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-sm",style:{color:e.secondaryColor},children:"Student Name"}),r.jsx("p",{className:"text-lg font-semibold",style:{color:e.primaryColor},children:s})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm",style:{color:e.secondaryColor},children:"Course"}),r.jsx("p",{className:"text-lg font-semibold",style:{color:e.primaryColor},children:a})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm",style:{color:e.secondaryColor},children:"Completion Date"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(c,{className:"h-4 w-4",style:{color:e.secondaryColor}}),r.jsx("p",{className:"font-medium",style:{color:e.primaryColor},children:t})]})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm",style:{color:e.secondaryColor},children:"Overall Grade"}),r.jsxs("p",{className:"text-2xl font-bold",style:{color:e.primaryColor},children:["A"," (",91,"%)"]})]})]}),r.jsxs("div",{className:"mb-6",children:[r.jsx("h3",{className:"mb-3 text-lg font-semibold",style:{color:e.primaryColor},children:"Exam Type"}),r.jsx("div",{className:"overflow-hidden rounded-lg border",style:{borderColor:e.borderColor},children:r.jsxs("table",{className:"w-full",children:[r.jsx("thead",{children:r.jsxs("tr",{style:{backgroundColor:`${e.primaryColor}20`},children:[r.jsx("th",{className:"border-b p-3 text-left font-semibold",style:{color:e.primaryColor,borderColor:e.borderColor},children:"Exam Type"}),r.jsx("th",{className:"border-b p-3 text-right font-semibold",style:{color:e.primaryColor,borderColor:e.borderColor},children:"Total Marks"})]})}),r.jsxs("tbody",{children:[r.jsxs("tr",{className:"border-b",style:{borderColor:e.borderColor},children:[r.jsx("td",{className:"p-3",style:{color:e.secondaryColor},children:"Assignment"}),r.jsx("td",{className:"p-3 text-right font-medium",style:{color:e.primaryColor},children:"10/50"})]}),r.jsxs("tr",{children:[r.jsx("td",{className:"p-3",style:{color:e.secondaryColor},children:"Quiz"}),r.jsx("td",{className:"p-3 text-right font-medium",style:{color:e.primaryColor},children:"0/0"})]})]})]})})]}),r.jsx("div",{className:"mt-8 border-t-2 pt-4 text-center",style:{borderColor:e.borderColor},children:r.jsx("p",{className:"text-sm",style:{color:e.secondaryColor,fontFamily:e.fontFamily},children:e.footerText})})]})};export{h as default};
