components([ Select::make('sport_id') ->live() ->options(Sport::where('is_active', 1)->pluck('name', 'id')) ->preload(), Select::make('matchpart_id') ->options(Matchpart::where('is_active', 1)->pluck('name', 'id')) ->preload(), Select::make('bettype_id') ->options(fn (Get $get) => Bettype::where('sport_id', $get('sport_id'))->whereIn('bettype_id', self::$bettypes)->pluck('name', 'bettype_id')), Select::make('bookmaker_id') ->options(Bookmaker::where('is_active', 1)->pluck('name', 'txid')) ->preload() ->searchable(), ]); } }