export const AttendanceStatuses = ['present', 'absent'] as const;

export type AttendanceStatus = (typeof AttendanceStatuses)[number];

export const AttendanceStatusLabels: Record<AttendanceStatus, string> = {
    present: 'Hadir',
    absent: 'Tidak Hadir',
};

export type AttendanceCourseClass = {
    id: number;
    course: { id: number; code: string; name: string } | null;
};

export type AttendanceSession = {
    course_class_id: number;
    course_class: AttendanceCourseClass | null;
    meeting_number: number | null;
    date: string;
    total_count: number;
    present_count: number;
};

export type AttendanceRosterStudent = {
    id: number;
    student_number: string;
    user: { profile: { full_name: string } | null } | null;
};

export type AttendanceRosterEntry = {
    student_id: number;
    student: AttendanceRosterStudent | null;
    status: AttendanceStatus;
};
