Table list edit query based on certain conditions - Filament