<?php if (!is_user_logged_in()) : ?>
    <p><?php esc_html_e('You must be logged in to view this page.', 'subscription-system'); ?></p>
    <p><?php esc_html_e('Please log in to access your account.', 'subscription-system'); ?></p>
    <p><?php esc_html_e('If you don\'t have an account, please register first.', 'subscription-system'); ?></p>
    <p><?php esc_html_e('Contact support if you need assistance.', 'subscription-system'); ?></p>
<?php else : ?>
<div class="ss-account-tabs">
    <ul class="ss-tabs-nav">
        <li class="ss-tab-item active" data-tab="dashboard"><?php esc_html_e('Dashboard', 'subscription-system'); ?></li>
        <li class="ss-tab-item" data-tab="subscription"><?php esc_html_e('Your Subscription', 'subscription-system'); ?></li>
        <li class="ss-tab-item" data-tab="orders"><?php esc_html_e('Your Orders', 'subscription-system'); ?></li>
        <li class="ss-tab-item" data-tab="profile"><?php esc_html_e('Profile', 'subscription-system'); ?></li>
    </ul>
    
    <div class="ss-tabs-content">
        <div class="ss-tab-content active" id="dashboard-tab">
            <?php include plugin_dir_path(__FILE__) . 'account-tabs/account-dashboard.php'; ?>
        </div>
        
        <div class="ss-tab-content" id="subscription-tab">
            <?php include plugin_dir_path(__FILE__) . 'account-tabs/account-subscription.php'; ?>
        </div>
        
        <div class="ss-tab-content" id="orders-tab">
            <?php include plugin_dir_path(__FILE__) . 'account-tabs/account-orders.php'; ?>
        </div>
        
        <div class="ss-tab-content" id="profile-tab">
            <?php include plugin_dir_path(__FILE__) . 'account-tabs/account-profile.php'; ?>
        </div>
    </div>
</div>
<?php endif; ?> 