The class is actually doing some changes in colors. If the value is active, Then, It will show some colored text and background is in the same logic for the remaining values like rejected, cancelled, expired, pending. Is it that good to write like this or Is there any other alternative way to write. While seeing this it might like