142, 'cancelled_subscriptions' => 28, 'trial_subscriptions' => 19, 'total_products' => 8, 'churn_rate' => 8.4, 'trial_conversion_rate' => 64.7, 'average_subscription_value' => 24.99, ); $dummy_revenue = array( 'total_revenue' => 18420.00, 'mrr' => 2847.00, 'arr' => 34164.00, 'net_revenue' => 17090.00, ); $dummy_revenue_at_risk = 580.00; $dummy_trials = array( 'total_trials' => 47, 'converted_trials' => 31, 'active_trials' => 19, 'trial_revenue' => 2240.00, ); $dummy_popular = array( array( 'product_name' => 'Monthly Wellness Box', 'subscription_count' => 56, 'total_revenue' => 6720.00, 'average_revenue' => 120.00, ), array( 'product_name' => 'Annual Premium Plan', 'subscription_count' => 38, 'total_revenue' => 7220.00, 'average_revenue' => 190.00, ), array( 'product_name' => 'Basic Weekly Kit', 'subscription_count' => 29, 'total_revenue' => 2320.00, 'average_revenue' => 80.00, ), array( 'product_name' => 'Pro Content Access', 'subscription_count' => 19, 'total_revenue' => 1140.00, 'average_revenue' => 60.00, ), array( 'product_name' => 'Starter Bundle', 'subscription_count' => 12, 'total_revenue' => 480.00, 'average_revenue' => 40.00, ), ); $dummy_trends = array( array( 'label' => 'Jan', 'revenue' => 2200, 'active' => 118, 'total' => 130, 'cancelled' => 5, 'trials' => 12, 'conversions' => 8, ), array( 'label' => 'Feb', 'revenue' => 2380, 'active' => 122, 'total' => 135, 'cancelled' => 4, 'trials' => 14, 'conversions' => 9, ), array( 'label' => 'Mar', 'revenue' => 2510, 'active' => 126, 'total' => 140, 'cancelled' => 6, 'trials' => 16, 'conversions' => 11, ), array( 'label' => 'Apr', 'revenue' => 2650, 'active' => 130, 'total' => 144, 'cancelled' => 3, 'trials' => 18, 'conversions' => 12, ), array( 'label' => 'May', 'revenue' => 2730, 'active' => 134, 'total' => 148, 'cancelled' => 5, 'trials' => 17, 'conversions' => 14, ), array( 'label' => 'Jun', 'revenue' => 2847, 'active' => 142, 'total' => 155, 'cancelled' => 4, 'trials' => 19, 'conversions' => 13, ), ); if ( ! function_exists( 'subscrpt_preview_format_price' ) ) { /** * Format a dummy price for display in the preview. * * @param float $amount Amount to format. * @return string Formatted price HTML. */ function subscrpt_preview_format_price( float $amount ): string { return function_exists( 'wc_price' ) ? wc_price( $amount ) : esc_html( '$' . number_format( $amount, 2 ) ); } } ?>