Add an 'or' condition in 'where' clause for inactive appointments in customer controller.