You can commence maternity leave early with a dr certificate. You could then resign while on maternity leave and provide notice that way so you don't need to work out your notice period.