Set visibility of component based on current resource - Filament