The superior courts, on the trial of any civil case, shall give effect to all the rights of the parties, legal, equitable, or both, and apply remedies or relief, legal, equitable, or both, in favor of either party, as the nature of the case may allow or require.