Columns
Icon
IconColumn shows an icon, or a check and a cross for a true or false value.
use Xelqun\Tables\Columns\IconColumn;
IconColumn::make('is_gift')->label('Gift')->boolean();
boolean() shows a check for a true value and a cross for a false one.
Without it, icon() and color() choose what to show.
IconColumn::make('status')
->icon(fn (string $state): string => $state === 'active' ? 'circle-check' : 'circle-alert')
->color(fn (string $state): string => $state === 'active' ? 'success' : 'warning');