they deleted the badgecolumn alongside enum function in filament v3 so instead of using enum function ,
filamentphp.com/docs/3.x/tables/upgrade-guide#badgecolumnenum-removed
you can use formatStateUsing() methode
example :
TextColumn::make('status')
->label('Status')
->formatStateUsing(function ($state) {
return match ($state) {
'pending' => 'Pending',
'completed' => 'Completed',
'cancelled' => 'Cancelled',
default => $state,
};
})
->color(function ($state) {
return match ($state) {
'pending' => 'warning',
'completed' => 'success',
'cancelled' => 'danger',
default => 'gray',
};
})
->icon(function ($state) {
return match ($state) {
'pending' => 'heroicon-s-clock',
'completed' => 'heroicon-s-check-circle',
'cancelled' => 'heroicon-s-x-circle',
default => 'heroicon-s-question-mark-circle',
};
})
->badge(),