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 { ClipboardList, Plus } from 'lucide-react';
import { useEffect, useState } from 'react';
import MarkSheetCard from './partials/marksheet-card';
interface MarksheetPageProps extends SharedData {
templates: MarksheetTemplate[];
}
const MarksheetIndex = ({ templates, system }: MarksheetPageProps) => {
const examTemplates = templates.filter((template) => template.type === 'exam');
const courseTemplates = templates.filter((template) => template.type === 'course');
const initialCourseMarksheetEnabled = system?.fields?.show_course_marksheet ?? true;
const [courseMarksheetEnabled, setCourseMarksheetEnabled] = useState
Enable/disable course marksheets for students.
Design marksheets showing course grades
Create your first marksheet template to get started