(int) ( $integration->amount ?? 0 ), $academy_integrations ); $academy_currency = $academy_integrations[0]->price->currency ?? 'USD'; $academy_min = min( $academy_prices ); $academy_max = max( $academy_prices ); $academy_price = $academy_min === $academy_max ? Currency::format( $academy_min, $academy_currency ) : Currency::format( $academy_min, $academy_currency ) . ' - ' . Currency::format( $academy_max, $academy_currency ); } \Academy\Helper::get_template( 'shortcode/academy-enroll-form/enroll-form.php', [ 'price' => $academy_price, 'enroll_link' => get_the_permalink( $course_id ), ] );