Dynamic badge blade color

color="" and :color="" can't call or use alpinejs function or variable, how can i solve this?
the code:
Was this page helpful?