|
|
|
@ -4,8 +4,9 @@
|
|
|
|
|
# json.student_id member.user&.student_id
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
json.member_attendances @members.each do |member|
|
|
|
|
|
json.member_attendances @members.each_with_index do |member, index|
|
|
|
|
|
json.(member, :user_id)
|
|
|
|
|
json.index (@page.to_i - 1) * @limit.to_i + index + 1
|
|
|
|
|
json.user_name member.user&.real_name
|
|
|
|
|
json.student_id member.user&.student_id
|
|
|
|
|
json.attendance_status @member_attendances.select{|attendance| attendance.course_member_id == member.id}.first&.attendance_status || "ABSENCE"
|
|
|
|
|