attrition export to pdf and excel