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') { $stmt = db()->prepare("SELECT * FROM startups WHERE founder_id = ? ORDER BY 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 Round

Ready to share your vision with the world?

Start Your First Round
Target: £
£
Raised so far

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
'

Gatsby Pro

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