pending appointments gets greay when has 0 and red when has a pending appointment