public function scopeSearch(Builder $query, ?string $search = null): Builder 	{ 		$search = preg_replace('/\s+/', '%', $search ?? ''); 		$search = empty($search) ? null : '%' . $search . '%';  		return !$search ? $query : $query->where(function ($query) use ($search) { 			$query->orWhere('order_number_timestamp', 'like', $search) 				->orWhere('delivery_name', 'like', $search) 				->orWhere('delivery_surname', 'like', $search) 				->orWhere('email', 'like', $search); 		}); 	}