"Someday everything will make perfect sense. So for now, laugh at the confusion, smile through the tears, and keep reminding yourself that everything happens for a reason." Even if someday it doesn't make perfect sense, it happened for a reason.
Just because you aren't given the credit and haven't been recognised for your work doesn't mean you have to give up or stop. You don't always need credit, other people do not always have to know what you are capable of doing as long as you do.