The appellate court shall render any judgment which is just, legal, and proper upon the record on appeal. The court may award damages, including attorney fees, for frivolous appeal or application for writs, and may tax the costs of the lower or appellate court, or any part thereof, against any party to the suit, as in its judgment may be considered equitable.
La. C.P. § 2164