Repeating Esha fardh and sunnat if the fardh was invalid
Q:
1. If we perform Esha Fard, sunnat and witr and nafl but after the time of the prayer has expired we realized that the fard was not valid, what qadha do we need to offer (from the Fard, sunnat, witr and nafl)?
2. If we perform Esha Fard, sunnat, witr and nafl and before the time has expired, we realized that the fard was not valid, what do we we need to repeat (from Fard, sunnat, witr and nafl)?