<?php
/**
 * Display for General Settings tab
 */
?>

<form method="post" action="options.php">
    <?php settings_fields('subscription_general_settings'); ?>
    
    <h2>General Settings</h2>
    
    <table class="form-table">
        <tr>
            <th scope="row">Enable Subscriptions</th>
            <td>
                <input type="checkbox" name="enable_subscriptions" id="enable_subscriptions" value="1" <?php checked(get_option('enable_subscriptions'), 1); ?>>
                <label for="enable_subscriptions">Enable subscriptions for users</label>
            </td>
        </tr>
        
        <tr>
            <th scope="row"><?php esc_html_e('Enable Subscription Pausing', 'subscription-system'); ?></th>
            <td>
                <label for="show_pause_button">
                    <input type="checkbox" name="show_pause_button" id="show_pause_button" value="1" <?php checked(get_option('show_pause_button'), 1); ?>>
                    <?php esc_html_e('Allow users to pause and resume their subscriptions', 'subscription-system'); ?>
                </label>
                <p class="description"><?php esc_html_e('When enabled, users will see a "Pause Subscription" button for active subscriptions.', 'subscription-system'); ?></p>
            </td>
        </tr>
        
        <tr>
            <th scope="row"><?php esc_html_e('Enable Subscription Cancellation', 'subscription-system'); ?></th>
            <td>
                <input type="checkbox" name="show_cancel_button" id="show_cancel_button" value="1" <?php checked(get_option('show_cancel_button'), 1); ?>>
                <label for="show_cancel_button">Show Cancel Subscription Button</label>
                <p class="description"><?php esc_html_e('When enabled, users will see a "Cancel Subscription" button for active subscriptions.', 'subscription-system'); ?></p>
            </td>
        </tr>
    </table>
    
    <?php submit_button('Save Changes'); ?>
</form> 
 