Active/Inactive Button

I am trying to create an Active / Inactive Button on my home page. I want to set up a green button for the active user and it turns out to be red when the user is not active.

so it will be based on a pass in which when the user has an active pass the button will turn out to be green. when the pass is inactive the button turns out to be red.

Any ideas on how to make that happens?
1 person has
this question