public function scopeSearch(object $query, ?string $search = null): Builder 	{ 		$search = preg_replace('/\s+/', '%', $search ?? ''); 		$search = $search ? '%' . $search . '%' : null;  		return $search ? $query->where(static function ($query) use ($search): void { 			$query->orWhere('order_number_timestamp', 'like', $search) 				->orWhere('name', 'like', $search) 				->orWhere('surname', 'like', $search) 				->orWhere('email', 'like', $search); 		}) : $query; 	}