12 lines
419 B
12 lines
419 B
json.current_attendance do
|
|
json.partial! 'student_attendance', locals: {attendance: @current_attendance} if @current_attendance.present?
|
|
end
|
|
|
|
json.history_attendances @history_attendances do |attendance|
|
|
json.partial! 'student_attendance', locals: {attendance: attendance}
|
|
end
|
|
|
|
json.all_history_count @all_history_count
|
|
json.normal_count @normal_count
|
|
json.leave_count @leave_count
|
|
json.absence_count @absence_count |