Tables\Columns\TextColumn::make( 'name' )
->sortable()
->searchable()
->action(
Tables\Actions\Action::make( 'showBundledProductsInModal' )
->action( fn() => null )
->modalHeading( 'Products in this bundle' )
->modalActions( [] )
->modalContent( fn( $record ) => view( 'filament.resources.products.table.bundled-products', [ 'record' => $record ] ) )
// I've tried visible, hidden...
//->visible( fn(): bool => ! empty( $this->record->product_type ) && (int) $this->record->product_type === ProductTypeEnum::BUNDLED->value )
),
Tables\Columns\TextColumn::make( 'name' )
->sortable()
->searchable()
->action(
Tables\Actions\Action::make( 'showBundledProductsInModal' )
->action( fn() => null )
->modalHeading( 'Products in this bundle' )
->modalActions( [] )
->modalContent( fn( $record ) => view( 'filament.resources.products.table.bundled-products', [ 'record' => $record ] ) )
// I've tried visible, hidden...
//->visible( fn(): bool => ! empty( $this->record->product_type ) && (int) $this->record->product_type === ProductTypeEnum::BUNDLED->value )
),