Injecting $record and using ->when - Filament