prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); if (!$user) { session_destroy(); header("Location: login.php"); exit; } // Security: Check if verified if ($user['verified'] == 0) { session_destroy(); header("Location: login.php?error=not_verified"); exit; } // Check if onboarding is complete if ($user['role'] === 'founder' && $user['onboarding_completed'] == 0) { header("Location: founder_onboarding.php"); exit; } $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; // Fetch user's data based on role $myStartups = []; $myInvestments = []; if ($user['role'] === 'founder') { // Fetch startups and their active round if any $stmt = db()->prepare(" SELECT s.*, fr.funding_goal as active_goal, fr.funding_raised as active_raised, fr.status as round_status FROM startups s LEFT JOIN funding_rounds fr ON s.id = fr.startup_id AND fr.status = 'Active' WHERE s.founder_id = ? ORDER BY s.created_at DESC "); $stmt->execute([$_SESSION['user_id']]); $myStartups = $stmt->fetchAll(); } else { $stmt = db()->prepare("SELECT i.*, s.name as startup_name FROM investments i JOIN startups s ON i.startup_id = s.id WHERE i.investor_id = ? ORDER BY i.created_at DESC"); $stmt->execute([$_SESSION['user_id']]); $myInvestments = $stmt->fetchAll(); } function number_get_formatted($num) { return number_format((float)$num, 0, '.', ','); } ?> Dashboard — <?= htmlspecialchars($platformName) ?>
() Log Out

Welcome, !

Manage your projects and network from one place.

My Ventures

+ Launch New Startup

Ready to share your vision with the world?

Start Your First Round
Target: £
£
Raised in round

Portfolio Overview

Find New Deals

Browse the next generation of student-led innovation.

Start Investing
Committed on
£

Insights & Activity

Coming soon: Real-time insights from your network and matching suggestions based on your profile.

My Profile

Edit
'

Find Partners

Ready to find your perfect co-founder? Start swiping through profiles.

Start Matching

Gatsby Pro

Get advanced analytics and direct intros to top-tier VC scouts.