Select::make('table_style')
->options([
0 => 'Default',
1 => 'Style 1',
2 => 'Style 2',
])->reactive()->required(),
Section::make('Default Settings')
->schema([
Toggle::make('show_features')
->inline(false),
])->visible(fn(\Closure $get) => $get('table_style') == 0),
Section::make('Style 2 Settings')
->schema([
Toggle::make('show_features')
->inline(false),
])->visible(fn(\Closure $get) => $get('table_style') === 1),
Section::make('Style 3 Settings')
->schema([
Toggle::make('show_features')
->inline(false),
])->visible(fn(\Closure $get) => $get('table_style') === 2),
Select::make('table_style')
->options([
0 => 'Default',
1 => 'Style 1',
2 => 'Style 2',
])->reactive()->required(),
Section::make('Default Settings')
->schema([
Toggle::make('show_features')
->inline(false),
])->visible(fn(\Closure $get) => $get('table_style') == 0),
Section::make('Style 2 Settings')
->schema([
Toggle::make('show_features')
->inline(false),
])->visible(fn(\Closure $get) => $get('table_style') === 1),
Section::make('Style 3 Settings')
->schema([
Toggle::make('show_features')
->inline(false),
])->visible(fn(\Closure $get) => $get('table_style') === 2),