return $form
->schema([
Section::make()
->schema([
TextInput::make('name')
->label('Segment Name')
->required()
->unique(ignoreRecord: true),
]),
Section::make('Define Rules')
->schema([
RuleBuilder::make('rules')
->constraints(static::getConstraints())
->blockPickerColumns(5)
->blockPickerWidth(MaxWidth::FiveExtraLarge->value),
]),
]);
return $form
->schema([
Section::make()
->schema([
TextInput::make('name')
->label('Segment Name')
->required()
->unique(ignoreRecord: true),
]),
Section::make('Define Rules')
->schema([
RuleBuilder::make('rules')
->constraints(static::getConstraints())
->blockPickerColumns(5)
->blockPickerWidth(MaxWidth::FiveExtraLarge->value),
]),
]);