I think Xavi's decision to resign is the right one. Xavi loves this club. And he is a living legend of Barcelona. He was the coach of this club for the last 2 years. And despite Barcelona not being in a good position, the team won the La Liga title last season with the help of Xavi. But now Barcelona face a bigger problem. The team's performance this season has been erratic. Also their financial condition is not good. So Barcelona needs a more experienced coach.
If Xavi remains as the coach of the team, it will not be good for Barcelona and Xavi. Barcelona fans might start trolling Xavi too. Perhaps this is why Xavi has decided not to stay at Barcelona at the end of this season.
Maybe what you say is true, with a unanimous and irrevocable decision to remain confident that he will resign from his position as Barcelona coach this season because of the disrespectful and disrespectful treatment he received while serving as El Barca coach for the past two years and the impact of the setback. What Xavi did to El Barca's players was that the players' mentality weakened day by day so that it was easy for Villarreal to beat because this was a big opportunity that the Villareal team had to show. If the Barcelona players had appeared more energetic and confident, I think the result would have been a draw or Barcelona would have won, but instead it turned out to be the opposite and made Barcelona lose at the hands of the Villareal team with a score of 3-5. From this incident, Barcelona must be able to find a coach who can restore the players' mentality so that in the future they will be even better.