How can I give ToggleButtons custom colors?
TicketsStatus has a name and ticket_color column, but how can I give to each button each respective color? Is that even possible?
ToggleButtons::make('feedback')
->label('What kind of ticket would you like to open?')
->options(TicketsStatus::all()->pluck('name', 'id'))
->colors(TicketsStatus::all()->pluck('ticket_color', 'id'))
->grouped()
->extraAttributes([
'style' => 'width: 100%;' // Ensure it takes full width
])
->columnSpan(6),