Truth is, all US Administrations from Bush to Biden have been dismal failures in Afghanistan for the simple reason they have not addressed the fundamental reason the Afghan Army proved so useless – corruption!
I notice you used a headline with "Trump" in it in a typical but lame attempt to try to give the impression that Trump caused this, yet Trump did a phenomenal job on foreign policy. Seriously, what he did in his term was above reproach - all you can think of is fake news that never happened.
This was all on Biden.
They withdrew and gave away their heavily defended, easy-to-secure Bagram airbase and "kept" the domestic airport that is slap bang in the middle of Kabul, easier to surround and difficult to secure.
It's just blithering idiocy. You don't even have to have military experience to know it was profoundly dumb to the point that no one would chose that ... only an idiot would command it.