Forms\Components\Wizard::make([
Forms\Components\Wizard\Step::make('Customer')
->columns(2)
->schema(fn(): array => $this->getStepOneWizardFormSchema())
->afterValidation(fn() => $this->resolveCustomer()),
Forms\Components\Wizard\Step::make('Cart')
->schema(fn(): array => $this->getStepTwoWizardFormSchema())
->afterValidation(fn(Forms\Get $get) => $this->validateCartBeforeCheckout($get)),
Forms\Components\Wizard\Step::make('Checkout')
->schema(fn(): array => $this->getStepThreeWizardFormSchema()),
])
->contained(false)
->columnSpanFull()
->nextAction(
fn(Action $action): Action => $action
// hide the button until we have a $this->customer
->hidden(true)
->disabled(true)
->livewireTarget(null)
),
Forms\Components\Wizard::make([
Forms\Components\Wizard\Step::make('Customer')
->columns(2)
->schema(fn(): array => $this->getStepOneWizardFormSchema())
->afterValidation(fn() => $this->resolveCustomer()),
Forms\Components\Wizard\Step::make('Cart')
->schema(fn(): array => $this->getStepTwoWizardFormSchema())
->afterValidation(fn(Forms\Get $get) => $this->validateCartBeforeCheckout($get)),
Forms\Components\Wizard\Step::make('Checkout')
->schema(fn(): array => $this->getStepThreeWizardFormSchema()),
])
->contained(false)
->columnSpanFull()
->nextAction(
fn(Action $action): Action => $action
// hide the button until we have a $this->customer
->hidden(true)
->disabled(true)
->livewireTarget(null)
),