Forms\Components\Select::make('region')
->label('Province/State')
->disabled(static fn (callable $get) => $get('country') === null)
->options(static function (callable $get) {
$country = $get('country');
if (! $country) {
return [];
}
return Contact::getRegionOptions($country);
})
->searchable(static fn (Forms\Components\Select $component) => !$component->isDisabled()),
Forms\Components\Select::make('region')
->label('Province/State')
->disabled(static fn (callable $get) => $get('country') === null)
->options(static function (callable $get) {
$country = $get('country');
if (! $country) {
return [];
}
return Contact::getRegionOptions($country);
})
->searchable(static fn (Forms\Components\Select $component) => !$component->isDisabled()),