Select::make('contract_id') ->native(false) ->label('Rental Contract type') ->relationship(name: 'contract', modifyQueryUsing: fn(Builder $query, Get $get) => $query->where('driver_id', $get('driver_id'))) ->getOptionLabelFromRecordUsing(function (Contract $contract) { return $contract->vehicle->body_number . " - " . $contract->title; }) ->preload() ->live(debounce: 50) ->required()