how can i use svg in iconcolum column or something similar ?

how can use i svg in iconcolum column or something similar ?
2 Replies
moaaz_m_f
moaaz_m_f14mo ago
Using custom column. go to resources > view create a view there and use below code to call it.
Tables\Columns\ViewColumn::make('my custom Icon')->view('components.imgSvg'),
Tables\Columns\ViewColumn::make('my custom Icon')->view('components.imgSvg'),
Patrick Boivin
Patrick Boivin14mo ago
Another option is to put your custom SVG into a Blade component. Discussed here recently : https://discord.com/channels/883083792112300104/1111320848209559702