Place search above all tabs, or inside of tabs?

I've been working on a web app for the past four months. On the product page, a couple of the categories have tabs for pending, in-progress, and approved products.

There is a search bar, and my question is: is it better to place search under the tabs bar, or above it? For instance, if the user clicked the in-progress tab and then uses the search bar to find their desired product, the search would be scoped to products in the in-progress tab because of he/she clicked that tab.

Is that better than providing the search bar for all statuses?