We need to recreate the same attendance page for students. We can add a query parameter to the route that gets attendance called userid, that will only return data of the given userId, and display just that students data in the frontend. We need to make this read only, so there should be no save attendance button, and the buttons should all be disabled for attendance.
We do not need a missing attendance component for students, so hide this component when rendering this page for students.
There are places in the app where it detects if the currently signed in user is a student or not, so just copy that logic for your code
We need to recreate the same attendance page for students. We can add a query parameter to the route that gets attendance called userid, that will only return data of the given userId, and display just that students data in the frontend. We need to make this read only, so there should be no save attendance button, and the buttons should all be disabled for attendance.
We do not need a missing attendance component for students, so hide this component when rendering this page for students.
There are places in the app where it detects if the currently signed in user is a student or not, so just copy that logic for your code