Forms\Components\Select::make('products')
->label('Activité(s)')
->relationship('productsWithoutTrashed')
->getOptionLabelFromRecordUsing(fn (Model $record) => "{$record->attribute_data['title']->getValue()}")
->multiple()
->required()
->placeholder('Sélectionner une activité')
->preload()
->searchable(['attribute_data->title'])
->columnSpan([
'default' => 6,
'lg' => 3,
]),
Forms\Components\Select::make('products')
->label('Activité(s)')
->relationship('productsWithoutTrashed')
->getOptionLabelFromRecordUsing(fn (Model $record) => "{$record->attribute_data['title']->getValue()}")
->multiple()
->required()
->placeholder('Sélectionner une activité')
->preload()
->searchable(['attribute_data->title'])
->columnSpan([
'default' => 6,
'lg' => 3,
]),