prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); // Fetch startup data $stmt = db()->prepare(" SELECT s.*, u.full_name as founder_name, u.university as founder_university, u.bio as founder_bio, u.skills as founder_skills, u.profile_image as founder_image, fr.funding_goal, fr.funding_raised as current_round_raised, fr.status as round_status, fr.id as round_id FROM startups s JOIN users u ON s.founder_id = u.id LEFT JOIN funding_rounds fr ON s.id = fr.startup_id AND fr.status = 'Active' WHERE s.id = ? "); $stmt->execute([$startupId]); $startup = $stmt->fetch(); if (!$startup) { die("Startup not found."); } $isFounder = ($startup['founder_id'] == $_SESSION['user_id']); // Fetch followers count $stmt = db()->prepare("SELECT COUNT(*) FROM startup_followers WHERE startup_id = ?"); $stmt->execute([$startupId]); $followersCount = $stmt->fetchColumn(); // Check if current user follows $isFollowing = false; $stmt = db()->prepare("SELECT 1 FROM startup_followers WHERE startup_id = ? AND follower_id = ?"); $stmt->execute([$startupId, $_SESSION['user_id']]); $isFollowing = (bool)$stmt->fetchColumn(); // Fetch recent updates $stmt = db()->prepare("SELECT * FROM startup_updates WHERE startup_id = ? ORDER BY created_at DESC LIMIT 5"); $stmt->execute([$startupId]); $updates = $stmt->fetchAll(); // Fetch approved investments for founder view $approvedInvestments = []; if ($isFounder) { $stmt = db()->prepare(" SELECT i.*, u.full_name as investor_name, u.id as investor_user_id FROM investments i JOIN users u ON i.investor_id = u.id WHERE i.startup_id = ? AND i.status = 'approved' ORDER BY i.created_at DESC "); $stmt->execute([$startupId]); $approvedInvestments = $stmt->fetchAll(); } function getNextDividendInfo($investmentDate) { $nextDate = date('M d, Y', strtotime($investmentDate . ' + 1 month')); return $nextDate; } $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; ?> <?= htmlspecialchars($startup['name']) ?> — <?= htmlspecialchars($platformName) ?>

Followers
Edit Startup
Message Founder
Currently Fundraising

Seed Round is LIVE

Invest Now
£ raised Target: £

Startup Money Pot

Available Capital
£
Total Investments Received
£

This pot holds all investments received. You can withdraw funds for business operations or add funds to cover investor dividends.

Monthly Dividends Due

Track upcoming monthly payments to your investors based on your % offered return.

Investment: £
£
Next:

The Vision

Business Intelligence

Business Model

Product/Service

Verified Data Rooms

'Income Statements', 'balance_sheets' => 'Balance Sheets', 'cash_flow_statements' => 'Cash Flow Statements', 'revenue_breakdown' => 'Revenue Breakdown', 'gross_margin' => 'Gross Margin Analysis' ]; foreach ($docs as $key => $label): $docPath = $startup['doc_' . $key] ?? ''; ?>
Download Not uploaded