Shower installation, who dune it

The home inspection in this Palisade, Nebraska home revealed a shower pan installation that was new from the top side, but lets look from the bottom.  The floor joist was cut without the normal reinforcement, the copper pipe is connected with flare nuts and the fitting in the bottom of the shower pan which has been "repaired" with expansion foam still leaks a lot.  Amateur workman ship?  Sell it, it looks new. 

Shower installation, who dune it