Ben Gladwin's first half hat-trick, along with a Michael Smith goal, put the game well out of reach of Rochdale at Spotland - sealing the Town's place in the play-offs in the process.