it's not that hard, if you commit to going to school, then just try to go and do vacations during school holidays
otherwise, just home school
Why is this? If true, why this problem is not appearing in private schools that pretty universally do not object to parents taking their kids away for vacations or family events as long as kids master the material.
The teacher needs to have a program of study with specific topics covered, recommended exercises for practice and required homework to check understanding for each. If a student masters the material why does anyone care if he skipped a week? And if the student does not know the material he should get a bad grade, whether he was in every class or not.
That is how the school worked where I grew up (Eastern Europe) and it seems vastly superior to the mess we have in the US today, where many public schools teach to the lowest common denominator, making capable kids bored at best and and a nuisance to the teacher at worst.
What about schools not sticking their nose too far out into the parts of life that they should not control? Like where and when we take our kids on vacations.
If my kids get good grades and catch up on any missed homework the school should not get spun up about them missing some days.
Turning schools into a mild version of prisons is not good for anyone -- kids, parents or the society. My 2c.