how do I create such a filter before a resource? - Filament