Idk what else to do with my daughter

I taught her my daughter around 3 to potty train right now she’s 6 and theirs times where she does really good. But for the most part she constantly has accidents. Idk what else to do my husband & I have tried everythingggg talk to her, grounded her, take away all the “fun stuff” everythingggg. Nothing works just today the nurse called me and told me she had an “accident” I already knew because this was the second time I as a parent feel embarrassed because I feel like I will get judged by her teacher of staff at school. Idk what else to do. Like I mention theirs times where she does good but for the most part it’s bad. And as she gets older her pee smells bad. Wether her dad talks to or I do theirs no big change ☹️. Should I tell anything to the teacher? Of what’s going on or her accidents I wouldn’t know what to say though