Toggle::make('floridaOnly')
->default(true)
->reactive()
->afterStateUpdated(function (Closure $set, $state) {
$this->locations = AlamoLocationsFormatter::getFilterOptions(
SearchAlamoVehicleLocations::handle()->body(), $state
);
})
->columnSpan(3),
Select::make('fromLocation')
->options($this->locations)
->searchable()
->required(),
Toggle::make('floridaOnly')
->default(true)
->reactive()
->afterStateUpdated(function (Closure $set, $state) {
$this->locations = AlamoLocationsFormatter::getFilterOptions(
SearchAlamoVehicleLocations::handle()->body(), $state
);
})
->columnSpan(3),
Select::make('fromLocation')
->options($this->locations)
->searchable()
->required(),