In my opinion, the smartest kind of employee leaving is to maintain professionalism and respect, while maintaining good communication with the company and colleagues.
Should do:
1, advance notice.
2. Stay professional.
3. Detailed handover.
4. Express gratitude.