<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
    <title>Session Check</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 20px; }
        .session-data { background: #f0f8ff; padding: 15px; border-radius: 5px; margin: 10px 0; }
    </style>
</head>
<body>
    <h1>Session Check</h1>
    
    <div class="session-data">
        <h2>Current Session Data:</h2>
        <p><strong>Company ID:</strong> <?php echo $_SESSION['current_company_id'] ?? 'none'; ?></p>
        <p><strong>Company Name:</strong> <?php echo $_SESSION['current_company']['name'] ?? 'none'; ?></p>
        <p><strong>Full Session:</strong></p>
        <pre><?php print_r($_SESSION); ?></pre>
    </div>
    
    <div class="session-data">
        <h2>Test Switch:</h2>
        <p><a href="/test-simple-switch.php?switch=6">Switch to Axentra</a></p>
        <p><a href="/test-simple-switch.php?switch=2">Switch to Pixelvise2</a></p>
        <p><a href="/test-simple-switch.php?switch=1">Switch to Default Company</a></p>
    </div>
    
    <div class="session-data">
        <h2>Navigation:</h2>
        <p><a href="/index.php">Go to Dashboard</a></p>
    </div>
</body>
</html>
