Select::make('branch_visibility_id')
->label('Show only to this branches...')
->multiple()
->options( ... )
->relationship('visibilities', fn (Builder $query) => $query->where('type', ContentVisibilityTypeEnum::BRANCH))
->searchable(),
Select::make('community_visibilities')
->label('Show only to this communities...')
->multiple()
->options(...)
->relationship('visibilities', fn (Builder $query) => $query->where('type', ContentVisibilityTypeEnum::COMMUNITY))
->searchable(),
Select::make('branch_visibility_id')
->label('Show only to this branches...')
->multiple()
->options( ... )
->relationship('visibilities', fn (Builder $query) => $query->where('type', ContentVisibilityTypeEnum::BRANCH))
->searchable(),
Select::make('community_visibilities')
->label('Show only to this communities...')
->multiple()
->options(...)
->relationship('visibilities', fn (Builder $query) => $query->where('type', ContentVisibilityTypeEnum::COMMUNITY))
->searchable(),