public function index(SearchProducts $request): JsonResource 	{ 		$query = Product::includes() 			->available() 			->when($request->boolean('available'), static function (Builder $query): void { 				$query->availableForOrder(); 			}) 			->latest();  		$products = $request->products 			? $query->whereIn('id', $request->products)->get() 			: $query->simplePaginate()->withQueryString();  		return ProductResource::collection($products); 	}