It's just so hard

I'm trying diet again. I was doing good until I had surgery. That kept me on bed rest for a month which ended up into me not going too the gym for 3 months!!!! I need as much motivation as possible.