Not only has Iran managed to survive being battered by the most powerful military in history, it has:
1. Created a global energy and economic crisis.
2. Effectively demonstrated that it can control the Strait of Hormuz even without much naval and air firepower. In doing so, it showed that the US Navy is not capable of controlling the seas anywhere and anytime.
3. Caused the US and its allies to spend billions of dollars worth of advanced weapons systems (many of which were already in short supply) to defend against much cheaper drones and missiles.
4. Incited Trump to lash out at the European countries that have historically been America's biggest allies, accelerating the trend of America's now possibly irreparably damaged relationships with these countries.
5. Baited Trump into publicly and belligerently positioning the US as a hostile state willing to threaten war crimes/genocide to get its way.
I am not a fan of Trump, but I was mostly ambivalent about most of his escapades. He clearly got really lucky with Venezuela and it went to his head.