Just giving my two cents, but your ph was a little alkaline for a betta, and your nitrates at 40ppm is also pretty high. Ideally you want them at like 10ppm at the most, and Bettas actually like slightly acidic water.
If you mean the tail was gone as in frayed or rotted away, then I'd imagine...