Intervening factors in the quality of teacher life during the COVID-19 pandemic