You can't please both sides.

Literal

Both good-way [limit-には] can't-do.

いいようにはできない means 'can't arrange things to be favorable for both.' には carries a limiting nuance — 'within that constraint, it's impossible.' A concise statement of a universal truth, phrased in plain form with no subject.