Does a company have the right to fire a child for having to leave for 6 weeks due to court ordered custody?

No you can Take them to court