<div class="wrap chainpay-admin">
    <h1>ChainPay License Manager - Dashboard</h1>
    
    <div class="chainpay-stats">
        <div class="stat-box">
            <h3>Total Licenses</h3>
            <p class="stat-number"><?php echo esc_html($stats['total_licenses']); ?></p>
        </div>
        <div class="stat-box">
            <h3>Active Licenses</h3>
            <p class="stat-number"><?php echo esc_html($stats['active_licenses']); ?></p>
        </div>
        <div class="stat-box">
            <h3>Subscriptions</h3>
            <p class="stat-number"><?php echo esc_html($stats['active_subscriptions']); ?></p>
        </div>
        <div class="stat-box">
            <h3>Monthly Revenue</h3>
            <p class="stat-number">$<?php echo number_format($stats['monthly_revenue'], 2); ?></p>
        </div>
    </div>
    
    <div class="chainpay-quick-actions">
        <h2>Quick Actions</h2>
        <a href="<?php echo admin_url('admin.php?page=chainpay-licenses&action=create'); ?>" class="button button-primary">Create License</a>
        <a href="<?php echo admin_url('admin.php?page=chainpay-plans'); ?>" class="button">Manage Plans</a>
        <a href="<?php echo admin_url('admin.php?page=chainpay-settings'); ?>" class="button">Settings</a>
    </div>
    
    <div class="chainpay-api-info">
        <h2>API Endpoints</h2>
        <p>Use these endpoints to validate licenses in your applications:</p>
        <code><?php echo esc_url(rest_url('chainpay-license/v1/validate')); ?></code>
        <br><br>
        <code><?php echo esc_url(rest_url('chainpay-license/v1/activate')); ?></code>
        <br><br>
        <code><?php echo esc_url(rest_url('chainpay-license/v1/deactivate')); ?></code>
    </div>
</div>
