Can someone help me.
In an other question I have asked for a tutorial for a role and permission system.
I watched some tutorials and now I implemented Spatie Roles and Permissions.
To show a rol belongs to a user I used {{ $user->roles()->pluck('name')->implode(' ') }}
Now I want to show the different roles in a different color. I tried but I can't get I wright.
In my table users I want to have a pill with the user role. if is Role is admin I want te display the pill in red, if the role Is user the pill has to be yellow etc.