Forms\Components\Placeholder::make('Choose and input customer data'), FilamentSelectify\Components\ButtonGroup::make('customer_type')
->live()
->required()
->afterStateUpdated(fn ( FilamentSelectify\Components\ButtonGroup $component) => $component
->getContainer()
->getComponent('dynamicCustomerForm')
->getChildComponentContainer()
->fill()),
Forms\Components\Grid::make(3)
->schema(fn (Forms\Get $get): array => match ($get('customer_type')) {
default => [],
})
->key('dynamicCustomerForm'),
Forms\Components\Placeholder::make('Choose and input customer data'), FilamentSelectify\Components\ButtonGroup::make('customer_type')
->live()
->required()
->afterStateUpdated(fn ( FilamentSelectify\Components\ButtonGroup $component) => $component
->getContainer()
->getComponent('dynamicCustomerForm')
->getChildComponentContainer()
->fill()),
Forms\Components\Grid::make(3)
->schema(fn (Forms\Get $get): array => match ($get('customer_type')) {
default => [],
})
->key('dynamicCustomerForm'),