Forms\Components\Section::make()
->schema([
Forms\Components\KeyValue::make('configKeyValue')
->statePath('config')
->visible(function ($get) {
return !class_exists("\\App\\Data\\PSP\\" . $get('code'));
})
->reactive(),
Forms\Components\Repeater::make('configData')
->reactive()
->statePath('config')
->visible(function ($get) {
return class_exists("\\App\\Data\\PSP\\" . $get('code'));
})
])
->columnSpan(2),
Forms\Components\Section::make()
->schema([
Forms\Components\KeyValue::make('configKeyValue')
->statePath('config')
->visible(function ($get) {
return !class_exists("\\App\\Data\\PSP\\" . $get('code'));
})
->reactive(),
Forms\Components\Repeater::make('configData')
->reactive()
->statePath('config')
->visible(function ($get) {
return class_exists("\\App\\Data\\PSP\\" . $get('code'));
})
])
->columnSpan(2),