Resignation and Retirement: Legal Principles and Case Law Analysis in Employment Contexts