Badge component color using hex
Hello, I am using the
I tried using the
However, when I try to achieve the same with the Blade component, it doesn't work.
Can anyone help me with this?
Badge Filament Blade component, and I would like to change its color by passing a hex code, but it is not working.I tried using the
TextColumn badge functionality to change the color with a hex code, and it worked like this:Color::hex($record->attributeOptions->first()->color_code);However, when I try to achieve the same with the Blade component, it doesn't work.
Can anyone help me with this?