public static function form(Form $form): Form
{
return $form
->schema([
Wizard::make([
Wizard\Step::make('First Step')
->schema([
TextInput::make('title')->required(),
Forms\Components\Actions::make([
Action::make('Custom Modal')
->button()
// ->icon('heroicon-m-price')
->form([
TextInput::make('price')->prefix('€')->required(),
])
->action(function (Set $set, Get $get) {
$set('price', $get('price'));
}),
]),
]),
//...
]),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Wizard::make([
Wizard\Step::make('First Step')
->schema([
TextInput::make('title')->required(),
Forms\Components\Actions::make([
Action::make('Custom Modal')
->button()
// ->icon('heroicon-m-price')
->form([
TextInput::make('price')->prefix('€')->required(),
])
->action(function (Set $set, Get $get) {
$set('price', $get('price'));
}),
]),
]),
//...
]),
]);
}