return Forms\Components\Select::make('locations')
->label(trans('locations.singular'))
->disabled()
->options(Auth::user()->locations()->get()->pluck('name', 'id'))
->saveRelationshipsUsing(fn($data, $record) => $record->locations()->sync($data['locations']))
->disablePlaceholderSelection();
return Forms\Components\Select::make('locations')
->label(trans('locations.singular'))
->disabled()
->options(Auth::user()->locations()->get()->pluck('name', 'id'))
->saveRelationshipsUsing(fn($data, $record) => $record->locations()->sync($data['locations']))
->disablePlaceholderSelection();