At home, make sure there is a consequence for her doing things "when she gets around to it." For example: "Because you didn't get the dishes done 'til late, you must need more time at home. So instead of an hour at Jaime's house after school, stay for only half an hour." Or conversely, "When you have finished cleaning your room to my satisfaction, you can go to Jaime's for an hour." You will have much better ideas than these.
At school, the teachers appear to be imposing natural consequences -- lower grades. You might reinforce those consequences by accepting her failure as her responsibility and supporting the consequences of the school. Remind her that lower grades mean she will not be considered for some clubs, awards, or activities. You might set up a consequence wherein she will have to take some summer school classes if she fails.
Most of all talk with your daughter not to her. Listen to her. Accommodate and let her have some independence and control over some things in her life. If she fails, focus on what she can do to change that and don't perceive her as a failure. Finally, enjoy her becoming a young woman. It's a balancing act, but you can do it.