+ {status && (
+
{status.message}
+ )}
+
+
+
Select Event
+
+
+
+
+
+ {selectedEventId && (
+ <>
+
+
+ Upload PDF Template{" "}
+
+ {selectedEvent?.template ? "Replace" : "Required"}
+
+
+
+ Upload a Canva PDF with AcroForm fields:{" "}
+ recipient_name, event_name,{" "}
+ issue_date
+
+
+
+
+ setTemplateFile(e.target.files?.[0] ?? null)
+ }
+ />
+
+
+
+
+
+
+
+ Bulk Import from CSV{" "}
+ CSV
+
+
+ CSV must have columns: Name, Email
+
+
+
+
+ setCsvFile(e.target.files?.[0] ?? null)
+ }
+ />
+
+
+
+
+
+
+
+
+
+
+ Certificates ({certificates.length})
+
+
+
+
+ {loading ? (
+
Loading...
+ ) : certificates.length === 0 ? (
+
+ No certificates yet. Import via CSV or create one manually.
+
+ ) : (
+
+
+
+
+ | Name |
+ Email |
+ Issue Date |
+ Actions |
+
+
+
+ {certificates.map((cert) => (
+
+ | {cert.recipientName} |
+ {cert.recipientEmail} |
+ {cert.issueDate} |
+
+
+ Download
+
+
+ |
+
+ ))}
+
+
+
+ )}
+
+ >
+ )}
+
+