Euler-Lagrange equations of motion

Build the mathematical model for a simple version of a satellite with 2 solar panels with internal fuel slosh. [See attachment's Eqns. (1)-(10) for guiding]. Same control inputs must be used
Write a step by step demonstration for getting to the equations of motion, any assumption or substitution should be stated in the process
Digital version is preferred.