Salesforce Apex Class not working

Job ID: 31290360

Budget: €18 – €36 EUR

I am having an Apex Class which is supposed to create a Case, Send out an Email with Attachments.
The Class isn't working properly anymore, the Attachments are not being added.
I am looking for your support to fix that class.

Attached the related Code, please have a look at it and contact me so we can debug it together