how to access current record in form function of Resource file - Filament