Add logic to create and show all attendances.

Logic added to show the index for the attendances, as well as
add the logic to only show the attendances for a given student.