Afghanistan has been a mess and the region is less safe now after this decade long war. Pakistan is now far more destabilized and Iran can now assert its influence over Afghanistan as it has in Iraq

Afghanistan has been at war for three decades. Iran has some influence, but not much as most Afghan are Sunnis. Iran will have no where near the influence in Afghanistan as it does in Iraq. Pakistan will continue to have more influence in Afghanistan.