import { Button } from '@/components/ui/button';
import { Card } from '@/components/ui/card';
import { Label } from '@/components/ui/label';
import { Switch } from '@/components/ui/switch';
import DashboardLayout from '@/layouts/dashboard/layout';
import { SharedData } from '@/types/global';
import { Head, Link, router } from '@inertiajs/react';
import { Award, Plus } from 'lucide-react';
import { useEffect, useState } from 'react';
import CertificateCard from './partials/certificate-card';
interface CertificatePageProps extends SharedData {
templates: CertificateTemplate[];
}
const CertificateIndex = ({ templates, system }: CertificatePageProps) => {
const examTemplates = templates.filter((template) => template.type === 'exam');
const courseTemplates = templates.filter((template) => template.type === 'course');
const initialCourseCertificateEnabled = system?.fields?.show_course_certificate ?? true;
const [courseCertificateEnabled, setCourseCertificateEnabled] = useState
Enable/disable course certificates for students.
Manage your certificate templates for course completion
Create your first certificate template to get started
Create your first certificate template to get started