->headerActions([ Tables\Actions\AttachAction::make() ->preloadRecordSelect() // Preload the select field values ->recordSelect(fn (Select $select) => $select->placeholder(__('projProgRelations.choosePartner'))) // change the select placeholder text ->extraModalFooterActions([ Tables\Actions\CreateAction::make() ->form([ TextInput::make('organism') ->label(__('projProgRelations.organism')) ->maxLength(255) ->required(), TextInput::make('name') ->label(__('projProgRelations.agentName')), TextInput::make('gsm') ->label(__('projProgRelations.agentGsm')) ->tel() ->unique(ignoreRecord:true) ->maxLength(10), TextInput::make('phone') ->label(__('projProgRelations.organismPhone')) ->tel() ->unique(ignoreRecord:true) ->maxLength(10), TextInput::make('email') ->label(__('projProgRelations.agentEmail')) ->email() ->maxLength(255) ->unique(ignoreRecord:true), ]) ]) ])