Render relation manager under condition

Is in filament possible to show relations only under some condition ? I need to show ProductsRelationManager only, if the edited Category isnt parent.

Image is just example, what I would like to create.
image.png
Was this page helpful?