Actions::make([
Action::make('generate_variations')
->label('Generate Variations')
->action(function (Get $get, Set $set, $action) {
$this->variationsSchema = $this->generateVariations();
// add the generated code to the repeater field
}),
])->columnSpanFull(),
Repeater::make('variations')
->columnSpanFull()
->collapsible()
->schema([]
Actions::make([
Action::make('generate_variations')
->label('Generate Variations')
->action(function (Get $get, Set $set, $action) {
$this->variationsSchema = $this->generateVariations();
// add the generated code to the repeater field
}),
])->columnSpanFull(),
Repeater::make('variations')
->columnSpanFull()
->collapsible()
->schema([]