The way to have preserve Afghanistan had to begin at the beginning, with a US imposed “MacArthur Constitution” on them.
Seal the border with Pakistan. It is a huge border, but only has a limited number of mountain passes. The vast majority of fighters throughout the war came from Pakistan madrassas.
Take all of the orphans in that nation, of which there are huge numbers, put them in a very large boarding school, and raise them with secular western teachers, to become the next generation of patriotic Afghan civilian and military leaders.
Most of the adult males were unemployed, so put them in enormous public works projects. The women back home would run their villages, and have their men’s pay delivered to them. Their national prevailing wage was tiny, so this would only cost, nationwide, about a billion dollars a year.
Issue biometric ID cards with a person’s photo on the front and all relevant information encrypted in dot matrix on the back. They would need the card for any food/fuel/pay/other rationing and to verify their vote.
Any adult found without their ID would be detained until their identity could be determined.
The government would be run by Americans, under a Common Law legal system, and would only be turned over to Afghans after they had been tutored and performed their job under supervision.
Our secular religion, Eric Prince called it: “Star Trek cosplay”, you know the one that says endemic boy rape is a protected and respectable cultural tradition, never stood a chance against the scourge of Islam.
I wonder if that same secular religion will succeed in raping our pansy asses with an experimental “vaccine”.