import { Badge } from '@/components/ui/badge'; import { Card, CardContent } from '@/components/ui/card'; import { cn } from '@/lib/utils'; import { Link } from '@inertiajs/react'; interface Props { enrollment: ExamEnrollment; className?: string; } const ExamCard2 = ({ enrollment, className }: Props) => { const { exam } = enrollment; const examUrl = route('student.exam.show', { id: exam.id, tab: 'attempts' }); return (
{exam.thumbnail ? ( {exam.title} ) : (
{exam.title.charAt(0)}
)} {exam.level && {exam.level}}

{exam.title}

{exam.short_description &&

{exam.short_description}

}
by {exam.instructor?.user?.name || 'Instructor'}
); }; export default ExamCard2;