The war will continue until the leading politicians in one or both countries change, but I honestly do not see a peaceful solution to the conflict at this moment. Ukraine simply must not give in at any cost, because it will remain without occupied territories forever, and Russia and its emperor will never retreat peacefully after all the losses they have suffered since the beginning of the war.
However, what Russia has as the most consumable goods are people, and not those from the biggest cities where life goes on almost normally, but from the rural areas from which most of the cannon fodder is recruited. In addition, I read that people who came to work in Russia are often found among the war fighters, and this only shows the level of recklessness or perhaps despair in their ranks.
Russia still really enjoys the advantage in people and is now simply throwing “live meat” at the Ukrainian front, since large losses force the Russian front to be replenished with mobilization resources of 30,000 people every month and they simply do not have time to more or less properly prepare them for military action. This is one of the reasons for the greatly increased losses of the Russian army in battles against Ukraine.
According to British intelligence estimates, in May and June alone, the Russian army lost about 70 thousand of its soldiers killed and wounded in Ukraine.
https://www.ukr.net/news/details/russianaggression/105631208.html
This roughly corresponds to the data of the Armed Forces of Ukraine, which on May 1 indicated the number of irretrievable losses of Russia in the amount of 469,840 people, and on July 1 - 543,810 people, that is, the difference was about 74 thousand. The increased losses are also explained by the expansion of the front in the Kharkov region and the shortage of tanks and armored vehicles in Russia, as a result of which infantry often storm Ukrainian positions without armored vehicle cover. In addition, if previously for one gun shot of the Ukrainian Armed Forces there were seven shots fired by the Russian occupiers, now this figure is leveling out and has become one in three. Therefore, the Kremlin began to urgently need soldiers, and as a result, one-time payments when concluding a contract in Russia increased from 200 thousand rubles to 1.6 million rubles, depending on the region.
The question is how long will Russians agree to die in Ukraine for big money. Former female prisoners have already been spotted in Russian assault squads, since Russian prisons have almost run out of men. The Armed Forces of Ukraine admit that Russian women do not surrender, they save the last grenade for themselves.