<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
    <title>Simple Workspace Debug</title>
    <style>
        body { font-family: Arial, sans-serif; margin: 20px; }
        .debug { background: #f0f8ff; padding: 15px; margin: 10px 0; border-radius: 5px; }
        .workspace-link { background: #007bff; color: white; padding: 10px 20px; text-decoration: none; margin: 5px; display: inline-block; border-radius: 5px; }
    </style>
</head>
<body>
    <h1>Simple Workspace Debug</h1>
    
    <div class="debug">
        <h2>Current Session Workspace:</h2>
        <p><strong>Company ID:</strong> <?php echo $_SESSION['workspace']['id'] ?? 'none'; ?></p>
        <p><strong>Company Name:</strong> <?php echo $_SESSION['workspace']['name'] ?? 'none'; ?></p>
        <p><strong>Full Data:</strong></p>
        <pre><?php print_r($_SESSION['workspace'] ?? 'No workspace data'); ?></pre>
    </div>
    
    <div class="debug">
        <h2>Test Workspace Switching:</h2>
        <a href="/workspace.php?id=6" class="workspace-link">Switch to Axentra (ID: 6)</a>
        <a href="/workspace.php?id=2" class="workspace-link">Switch to Pixelvise2 (ID: 2)</a>
        <a href="/workspace.php?id=1" class="workspace-link">Switch to Default Company (ID: 1)</a>
    </div>
    
    <div class="debug">
        <h2>Navigation:</h2>
        <p><a href="/index.php">Go to Dashboard</a></p>
    </div>
</body>
</html>
