Is it possible to hide Badge based on the value?

I have the following code and would love to hide for that row when "children_count" is 0. What are my options? Thanks.

return $table
            ->columns([
                Tables\Columns\TextColumn::make('title'),
                Tables\Columns\BadgeColumn::make('children_count')
                    ->label('')
                    ->icon('heroicon-o-tag')
                    ->counts('children')

            ])
Was this page helpful?