Update attendance.model.php