A 17-year-old boy was seriously injured in a brawl outside a nightclub after being smashed in the head with a baseball bat.