<?php

namespace MovieEngine\Admin\Monetization\Tabs;

if (! defined("ABSPATH")) {
    exit;
}

class MembershipPlansTab {

    public static function render($options = [], $standalone = true) {
        if (has_action('movie_engine_render_pro_membership_plans')) {
            do_action('movie_engine_render_pro_membership_plans', $options, $standalone);
            return;
        }

        \MovieEngine\Admin\Upgrade::render_upgrade_page(
            esc_html__('Membership Plans', 'cine-movie-engine'),
            esc_html__('Upgrade to Movie Engine Pro to create unlimited membership plans, manage subscriptions, and generate recurring revenue.', 'cine-movie-engine'),
            [
                esc_html__('Unlimited Membership Levels', 'cine-movie-engine'),
                esc_html__('Recurring Subscriptions with Auto-Renewal', 'cine-movie-engine'),
                esc_html__('Content Restriction Rules (Taxonomy & Single)', 'cine-movie-engine'),
                esc_html__('Custom Pricing, Trials & Coupons', 'cine-movie-engine'),
                esc_html__('Member Management Dashboard', 'cine-movie-engine'),
                esc_html__('Stripe & PayPal Integration', 'cine-movie-engine'),
                esc_html__('Email Notifications for Renewals', 'cine-movie-engine'),
                esc_html__('Restrict Downloads & 4K Quality', 'cine-movie-engine')
            ],
            MOVIE_ENGINE_URL . 'assets/images/membership.jpg'
        );
    }
}
