v29
This commit is contained in:
parent
66df8a0207
commit
9624830ffb
1
assets/docs/financials/placeholder.pdf
Normal file
1
assets/docs/financials/placeholder.pdf
Normal file
@ -0,0 +1 @@
|
||||
Placeholder for financial document
|
||||
@ -30,13 +30,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$product_service = trim($_POST['product_service'] ?? '');
|
||||
$operational_stage = trim($_POST['operational_stage'] ?? '');
|
||||
|
||||
// Equity Structure
|
||||
$total_shares = (int)($_POST['total_shares'] ?? 0);
|
||||
$share_classes = trim($_POST['share_classes'] ?? '');
|
||||
$founder_ownership = trim($_POST['founder_ownership'] ?? '');
|
||||
$investor_ownership = trim($_POST['investor_ownership'] ?? '');
|
||||
$esop_percentage = (float)($_POST['esop_percentage'] ?? 0);
|
||||
$convertible_instruments = trim($_POST['convertible_instruments'] ?? '');
|
||||
// Co-founder Matching
|
||||
$cofounder_equity_pct = trim($_POST['cofounder_equity_pct'] ?? '');
|
||||
$cofounder_equity_type = trim($_POST['cofounder_equity_type'] ?? '');
|
||||
$cofounder_responsibilities = trim($_POST['cofounder_responsibilities'] ?? '');
|
||||
$desired_cofounder_experience = trim($_POST['desired_cofounder_experience'] ?? '');
|
||||
$cofounder_commitment = trim($_POST['cofounder_commitment'] ?? '');
|
||||
$other_partnership_details = trim($_POST['other_partnership_details'] ?? '');
|
||||
|
||||
// Current Financials
|
||||
$current_cash_balance = (float)($_POST['current_cash_balance'] ?? 0);
|
||||
@ -91,7 +91,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
// Compute AI Recommended Return Rate
|
||||
$recommended_return_rate = $existingStartup['recommended_return_rate'] ?? 0.0;
|
||||
|
||||
// Re-calculate only if it's a new startup or if financials changed significantly (simplified: always re-calc if it's a POST)
|
||||
// AI Prompt
|
||||
$prompt = "As a financial analyst, calculate a recommended annual dividend yield (interest percentage) based on this startup profile:
|
||||
Name: {$name}
|
||||
Industry: {$industry}/{$sub_industry}
|
||||
@ -118,7 +118,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if ($existingStartup) {
|
||||
$stmt = db()->prepare("UPDATE startups SET
|
||||
name = ?, legal_name = ?, country = ?, industry = ?, sub_industry = ?, business_model = ?, product_service = ?, operational_stage = ?,
|
||||
total_shares = ?, share_classes = ?, founder_ownership = ?, investor_ownership = ?, esop_percentage = ?, convertible_instruments = ?,
|
||||
cofounder_equity_pct = ?, cofounder_equity_type = ?, cofounder_responsibilities = ?, desired_cofounder_experience = ?, cofounder_commitment = ?, other_partnership_details = ?,
|
||||
current_cash_balance = ?, outstanding_debt = ?, accounts_receivable_payable = ?, burn_rate = ?,
|
||||
doc_income_statements = ?, doc_balance_sheets = ?, doc_cash_flow_statements = ?, doc_revenue_breakdown = ?, doc_gross_margin = ?, doc_opex_breakdown = ?,
|
||||
recommended_return_rate = ?
|
||||
@ -126,7 +126,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
$stmt->execute([
|
||||
$name, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
|
||||
$total_shares, $share_classes, $founder_ownership, $investor_ownership, $esop_percentage, $convertible_instruments,
|
||||
$cofounder_equity_pct, $cofounder_equity_type, $cofounder_responsibilities, $desired_cofounder_experience, $cofounder_commitment, $other_partnership_details,
|
||||
$current_cash_balance, $outstanding_debt, $accounts_receivable_payable, $burn_rate,
|
||||
$uploaded_paths['doc_income_statements'], $uploaded_paths['doc_balance_sheets'], $uploaded_paths['doc_cash_flow_statements'],
|
||||
$uploaded_paths['doc_revenue_breakdown'], $uploaded_paths['doc_gross_margin'], $uploaded_paths['doc_opex_breakdown'],
|
||||
@ -136,7 +136,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
} else {
|
||||
$stmt = db()->prepare("INSERT INTO startups (
|
||||
name, legal_name, country, industry, sub_industry, business_model, product_service, operational_stage,
|
||||
total_shares, share_classes, founder_ownership, investor_ownership, esop_percentage, convertible_instruments,
|
||||
cofounder_equity_pct, cofounder_equity_type, cofounder_responsibilities, desired_cofounder_experience, cofounder_commitment, other_partnership_details,
|
||||
current_cash_balance, outstanding_debt, accounts_receivable_payable, burn_rate,
|
||||
doc_income_statements, doc_balance_sheets, doc_cash_flow_statements, doc_revenue_breakdown, doc_gross_margin, doc_opex_breakdown,
|
||||
founder_id, recommended_return_rate, status
|
||||
@ -144,7 +144,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
$stmt->execute([
|
||||
$name, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
|
||||
$total_shares, $share_classes, $founder_ownership, $investor_ownership, $esop_percentage, $convertible_instruments,
|
||||
$cofounder_equity_pct, $cofounder_equity_type, $cofounder_responsibilities, $desired_cofounder_experience, $cofounder_commitment, $other_partnership_details,
|
||||
$current_cash_balance, $outstanding_debt, $accounts_receivable_payable, $burn_rate,
|
||||
$uploaded_paths['doc_income_statements'], $uploaded_paths['doc_balance_sheets'], $uploaded_paths['doc_cash_flow_statements'],
|
||||
$uploaded_paths['doc_revenue_breakdown'], $uploaded_paths['doc_gross_margin'], $uploaded_paths['doc_opex_breakdown'],
|
||||
@ -154,7 +154,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
}
|
||||
|
||||
db()->commit();
|
||||
$success = "Startup profile saved successfully! Recommended return rate: " . number_format($recommended_return_rate, 2) . "%ற்றில்";
|
||||
$success = "Startup profile saved successfully! Recommended return rate: " . number_format($recommended_return_rate, 2) . "%";
|
||||
header("refresh:2;url=startup_details.php?id=" . $final_id);
|
||||
} catch (Exception $e) {
|
||||
db()->rollBack();
|
||||
@ -251,32 +251,32 @@ $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
|
||||
<textarea name="product_service" required style="height: 80px;"><?= htmlspecialchars($existingStartup['product_service'] ?? '') ?></textarea>
|
||||
</div>
|
||||
|
||||
<h3 style="margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; font-size: 18px;"><i class="fas fa-chart-pie"></i> 2. Equity Structure Information</h3>
|
||||
<h3 style="margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; font-size: 18px;"><i class="fas fa-handshake"></i> 2. Co-founder Matching & Partnership</h3>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;">
|
||||
<div>
|
||||
<label>Total Shares Issued</label>
|
||||
<input type="number" name="total_shares" value="<?= (int)($existingStartup['total_shares'] ?? 1000000) ?>">
|
||||
<label>Equity Offered (%)</label>
|
||||
<input type="text" name="cofounder_equity_pct" value="<?= htmlspecialchars($existingStartup['cofounder_equity_pct'] ?? '') ?>" placeholder="e.g. 10-15%">
|
||||
</div>
|
||||
<div>
|
||||
<label>ESOP Pool (%)</label>
|
||||
<input type="number" step="0.01" name="esop_percentage" value="<?= (float)($existingStartup['esop_percentage'] ?? 0) ?>">
|
||||
<label>Commitment Level</label>
|
||||
<input type="text" name="cofounder_commitment" value="<?= htmlspecialchars($existingStartup['cofounder_commitment'] ?? '') ?>" placeholder="e.g. Full-time">
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<label>Share Classes</label>
|
||||
<textarea name="share_classes" style="height: 60px;"><?= htmlspecialchars($existingStartup['share_classes'] ?? '') ?></textarea>
|
||||
<label>Equity Type</label>
|
||||
<input type="text" name="cofounder_equity_type" value="<?= htmlspecialchars($existingStartup['cofounder_equity_type'] ?? '') ?>" placeholder="e.g. Common Shares, Options">
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<label>Founder Ownership Breakdown</label>
|
||||
<textarea name="founder_ownership" style="height: 60px;"><?= htmlspecialchars($existingStartup['founder_ownership'] ?? '') ?></textarea>
|
||||
<label>Core Responsibilities for Co-founder</label>
|
||||
<textarea name="cofounder_responsibilities" style="height: 60px;"><?= htmlspecialchars($existingStartup['cofounder_responsibilities'] ?? '') ?></textarea>
|
||||
</div>
|
||||
<div style="margin-bottom: 20px;">
|
||||
<label>Existing Investor Ownership</label>
|
||||
<textarea name="investor_ownership" style="height: 60px;"><?= htmlspecialchars($existingStartup['investor_ownership'] ?? '') ?></textarea>
|
||||
<label>Desired Experience/Background</label>
|
||||
<textarea name="desired_cofounder_experience" style="height: 60px;"><?= htmlspecialchars($existingStartup['desired_cofounder_experience'] ?? '') ?></textarea>
|
||||
</div>
|
||||
<div style="margin-bottom: 30px;">
|
||||
<label>Convertible Instruments (SAFE, Notes)</label>
|
||||
<textarea name="convertible_instruments" style="height: 60px;"><?= htmlspecialchars($existingStartup['convertible_instruments'] ?? '') ?></textarea>
|
||||
<label>Other Partnership Details</label>
|
||||
<textarea name="other_partnership_details" style="height: 60px;"><?= htmlspecialchars($existingStartup['other_partnership_details'] ?? '') ?></textarea>
|
||||
</div>
|
||||
|
||||
<h3 style="margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; font-size: 18px;"><i class="fas fa-file-invoice-dollar"></i> 3. Mandatory Financials</h3>
|
||||
@ -344,4 +344,4 @@ $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
|
||||
</style>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
24
db/migrations/13_repurpose_equity_fields.sql
Normal file
24
db/migrations/13_repurpose_equity_fields.sql
Normal file
@ -0,0 +1,24 @@
|
||||
-- Migration: Repurpose equity fields for co-founder matching
|
||||
ALTER TABLE startups
|
||||
RENAME COLUMN total_shares TO cofounder_equity_pct;
|
||||
|
||||
ALTER TABLE startups
|
||||
MODIFY COLUMN cofounder_equity_pct VARCHAR(255); -- Change to string to allow ranges or descriptions
|
||||
|
||||
ALTER TABLE startups
|
||||
RENAME COLUMN share_classes TO cofounder_equity_type;
|
||||
|
||||
ALTER TABLE startups
|
||||
RENAME COLUMN founder_ownership TO cofounder_responsibilities;
|
||||
|
||||
ALTER TABLE startups
|
||||
RENAME COLUMN investor_ownership TO desired_cofounder_experience;
|
||||
|
||||
ALTER TABLE startups
|
||||
RENAME COLUMN esop_percentage TO cofounder_commitment;
|
||||
|
||||
ALTER TABLE startups
|
||||
MODIFY COLUMN cofounder_commitment VARCHAR(255);
|
||||
|
||||
ALTER TABLE startups
|
||||
RENAME COLUMN convertible_instruments TO other_partnership_details;
|
||||
381
seed_data.php
381
seed_data.php
@ -7,6 +7,15 @@ function hash_pass($p) {
|
||||
return password_hash($p, PASSWORD_DEFAULT);
|
||||
}
|
||||
|
||||
// Clear existing data to avoid conflicts during re-seed
|
||||
$db->exec("SET FOREIGN_KEY_CHECKS = 0");
|
||||
$db->exec("TRUNCATE TABLE messages");
|
||||
$db->exec("TRUNCATE TABLE startup_followers");
|
||||
$db->exec("TRUNCATE TABLE funding_rounds");
|
||||
$db->exec("TRUNCATE TABLE startups");
|
||||
$db->exec("TRUNCATE TABLE users");
|
||||
$db->exec("SET FOREIGN_KEY_CHECKS = 1");
|
||||
|
||||
$founders = [
|
||||
[
|
||||
'full_name' => 'Alex Chen',
|
||||
@ -14,20 +23,33 @@ $founders = [
|
||||
'role' => 'founder',
|
||||
'university' => 'Stanford University',
|
||||
'graduation_year' => 2018,
|
||||
'bio' => 'Former software engineer at Google with a passion for logistics and AI. Building the future of supply chain management.',
|
||||
'bio' => 'Former software engineer at Google with a passion for logistics and AI.',
|
||||
'interests' => 'AI, Logistics, E-commerce',
|
||||
'country' => 'USA',
|
||||
'skills' => 'Python, TensorFlow, Cloud Architecture',
|
||||
'years_experience' => 5,
|
||||
'previous_startup_exp' => 1,
|
||||
'previous_startup_desc' => 'Built a last-mile delivery app that was acquired in 2021.',
|
||||
'startup_industries' => 'SaaS, Supply Chain',
|
||||
'preferred_stage' => 'Early traction',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'high',
|
||||
'startup_name' => 'LogiAI',
|
||||
'legal_name' => 'LogiAI Systems Inc.',
|
||||
'startup_desc' => 'AI-powered predictive analytics for global supply chain optimization.',
|
||||
'funding_target' => 500000.00
|
||||
'industry' => 'AI & Robotics',
|
||||
'sub_industry' => 'Logistics Tech',
|
||||
'business_model' => 'B2B SaaS subscription model based on shipment volume.',
|
||||
'product_service' => 'Predictive analytics dashboard and API for freight forwarders.',
|
||||
'operational_stage' => 'Revenue-generating',
|
||||
'cofounder_equity_pct' => '10-15%',
|
||||
'cofounder_equity_type' => 'Options',
|
||||
'cofounder_responsibilities' => 'Oversee hardware integrations and edge computing strategy.',
|
||||
'desired_cofounder_experience' => 'Hardware engineering, IoT systems.',
|
||||
'cofounder_commitment' => 'Full-time',
|
||||
'other_partnership_details' => 'Preference for candidates with previous exit experience.',
|
||||
'current_cash_balance' => 450000.00,
|
||||
'burn_rate' => 25000.00,
|
||||
'outstanding_debt' => '£50k Convertible Note',
|
||||
'accounts_receivable_payable' => '£80k / £20k',
|
||||
'funding_target' => 500000.00,
|
||||
'recommended_return_rate' => 7.5,
|
||||
'founder_return_rate' => 8.0
|
||||
],
|
||||
[
|
||||
'full_name' => 'Sarah Jenkins',
|
||||
@ -35,20 +57,33 @@ $founders = [
|
||||
'role' => 'founder',
|
||||
'university' => 'Oxford University',
|
||||
'graduation_year' => 2015,
|
||||
'bio' => 'Marine biologist turned entrepreneur. On a mission to eliminate single-use plastics using sustainable seaweed alternatives.',
|
||||
'interests' => 'Sustainability, Marine Biology, Packaging',
|
||||
'bio' => 'Marine biologist turned entrepreneur.',
|
||||
'interests' => 'Sustainability, Marine Biology',
|
||||
'country' => 'UK',
|
||||
'skills' => 'Biochemistry, Product Development, Strategy',
|
||||
'skills' => 'Biochemistry, Product Development',
|
||||
'years_experience' => 8,
|
||||
'previous_startup_exp' => 0,
|
||||
'previous_startup_desc' => NULL,
|
||||
'startup_industries' => 'GreenTech, Manufacturing',
|
||||
'preferred_stage' => 'MVP',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'medium',
|
||||
'startup_name' => 'SeaPack',
|
||||
'legal_name' => 'SeaPack Solutions Ltd',
|
||||
'startup_desc' => 'Biodegradable packaging solutions derived from cultivated seaweed.',
|
||||
'funding_target' => 250000.00
|
||||
'industry' => 'Clean Energy',
|
||||
'sub_industry' => 'Sustainable Packaging',
|
||||
'business_model' => 'Direct-to-manufacturer wholesale of raw biopolymer sheets.',
|
||||
'product_service' => 'Seaweed-based alternative to plastic shrink wrap.',
|
||||
'operational_stage' => 'MVP',
|
||||
'cofounder_equity_pct' => '20%',
|
||||
'cofounder_equity_type' => 'Common Shares',
|
||||
'cofounder_responsibilities' => 'Lead sales and business development efforts globally.',
|
||||
'desired_cofounder_experience' => 'FMCG sales, supply chain networking.',
|
||||
'cofounder_commitment' => 'Full-time',
|
||||
'other_partnership_details' => 'Seeking someone with strong ties to major retail brands.',
|
||||
'current_cash_balance' => 85000.00,
|
||||
'burn_rate' => 8000.00,
|
||||
'outstanding_debt' => 'None',
|
||||
'accounts_receivable_payable' => '£5k / £2k',
|
||||
'funding_target' => 250000.00,
|
||||
'recommended_return_rate' => 12.0,
|
||||
'founder_return_rate' => 10.5
|
||||
],
|
||||
[
|
||||
'full_name' => 'Marco Rossi',
|
||||
@ -56,167 +91,33 @@ $founders = [
|
||||
'role' => 'founder',
|
||||
'university' => 'Bocconi University',
|
||||
'graduation_year' => 2012,
|
||||
'bio' => 'Finance veteran with 10 years in investment banking. Dedicated to simplifying cross-border payments for European SMEs.',
|
||||
'bio' => 'Finance veteran with 10 years in investment banking.',
|
||||
'interests' => 'Fintech, Banking, Blockchain',
|
||||
'country' => 'Italy',
|
||||
'skills' => 'Financial Modeling, Compliance, Leadership',
|
||||
'skills' => 'Financial Modeling, Compliance',
|
||||
'years_experience' => 12,
|
||||
'previous_startup_exp' => 1,
|
||||
'previous_startup_desc' => 'Co-founded a P2P lending platform in Milan.',
|
||||
'startup_industries' => 'Fintech',
|
||||
'preferred_stage' => 'Scaling',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'medium',
|
||||
'startup_name' => 'FinFlow',
|
||||
'legal_name' => 'FinFlow Payments S.p.A.',
|
||||
'startup_desc' => 'Unified payment orchestration for SMEs operating across European borders.',
|
||||
'funding_target' => 1200000.00
|
||||
],
|
||||
[
|
||||
'full_name' => 'Lila Gupta',
|
||||
'email' => 'lila@skillup.in',
|
||||
'role' => 'founder',
|
||||
'university' => 'IIT Delhi',
|
||||
'graduation_year' => 2020,
|
||||
'bio' => 'Edtech enthusiast focused on democratizing access to high-quality vocational training for remote youth.',
|
||||
'interests' => 'Edtech, Social Impact, Education',
|
||||
'country' => 'India',
|
||||
'skills' => 'Product Design, Community Building, Marketing',
|
||||
'years_experience' => 3,
|
||||
'previous_startup_exp' => 0,
|
||||
'previous_startup_desc' => NULL,
|
||||
'startup_industries' => 'Edtech',
|
||||
'preferred_stage' => 'Early traction',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'high',
|
||||
'startup_name' => 'SkillUp',
|
||||
'startup_desc' => 'Mobile-first platform for vocational certifications and job matching in emerging markets.',
|
||||
'funding_target' => 150000.00
|
||||
],
|
||||
[
|
||||
'full_name' => 'David Schmidt',
|
||||
'email' => 'david@aquaclean.de',
|
||||
'role' => 'founder',
|
||||
'university' => 'TU Munich',
|
||||
'graduation_year' => 2014,
|
||||
'bio' => 'Engineer with a PhD in Biotechnology. Developed a proprietary filtration system for microplastic removal.',
|
||||
'interests' => 'Clean Water, Biotech, Engineering',
|
||||
'country' => 'Germany',
|
||||
'skills' => 'Chemical Engineering, IP Strategy, R&D',
|
||||
'years_experience' => 10,
|
||||
'previous_startup_exp' => 0,
|
||||
'previous_startup_desc' => NULL,
|
||||
'startup_industries' => 'CleanTech',
|
||||
'preferred_stage' => 'MVP',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'low',
|
||||
'startup_name' => 'AquaClean',
|
||||
'startup_desc' => 'Next-gen water filtration systems for industrial and municipal use.',
|
||||
'funding_target' => 750000.00
|
||||
],
|
||||
[
|
||||
'full_name' => 'Elena Petrova',
|
||||
'email' => 'elena@artisan.market',
|
||||
'role' => 'founder',
|
||||
'university' => 'Lomonosov Moscow State University',
|
||||
'graduation_year' => 2016,
|
||||
'bio' => 'Digital marketing expert helping local artisans reach a global audience through an curated e-commerce experience.',
|
||||
'interests' => 'E-commerce, Arts, Marketing',
|
||||
'country' => 'Russia',
|
||||
'skills' => 'SEO, SEM, Brand Identity',
|
||||
'years_experience' => 7,
|
||||
'previous_startup_exp' => 1,
|
||||
'previous_startup_desc' => 'Ran a boutique digital agency for 4 years.',
|
||||
'startup_industries' => 'E-commerce, Retail',
|
||||
'preferred_stage' => 'Scaling',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'medium',
|
||||
'startup_name' => 'ArtisanMarket',
|
||||
'startup_desc' => 'Global marketplace for verified high-end handcrafted goods.',
|
||||
'funding_target' => 300000.00
|
||||
],
|
||||
[
|
||||
'full_name' => 'Yuki Tanaka',
|
||||
'email' => 'y.tanaka@silver-care.jp',
|
||||
'role' => 'founder',
|
||||
'university' => 'University of Tokyo',
|
||||
'graduation_year' => 2011,
|
||||
'bio' => 'Passionate about improving the quality of life for the aging population through intuitive technology.',
|
||||
'interests' => 'Healthtech, Elderly Care, Robotics',
|
||||
'country' => 'Japan',
|
||||
'skills' => 'Hardware Design, UX Research, Project Management',
|
||||
'years_experience' => 13,
|
||||
'previous_startup_exp' => 0,
|
||||
'previous_startup_desc' => NULL,
|
||||
'startup_industries' => 'Healthtech',
|
||||
'preferred_stage' => 'Early traction',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'medium',
|
||||
'startup_name' => 'SilverCare',
|
||||
'startup_desc' => 'IoT-enabled monitoring and assistance system for seniors living independently.',
|
||||
'funding_target' => 600000.00
|
||||
],
|
||||
[
|
||||
'full_name' => 'Omar Al-Fayed',
|
||||
'email' => 'omar@sunstore.ae',
|
||||
'role' => 'founder',
|
||||
'university' => 'American University of Sharjah',
|
||||
'graduation_year' => 2017,
|
||||
'bio' => 'Focused on accelerating the energy transition in the Middle East with innovative thermal storage solutions.',
|
||||
'interests' => 'Energy, Renewables, Solar',
|
||||
'country' => 'UAE',
|
||||
'skills' => 'Thermodynamics, Business Development, Operations',
|
||||
'years_experience' => 6,
|
||||
'previous_startup_exp' => 1,
|
||||
'previous_startup_desc' => 'Founder of a residential solar installation company.',
|
||||
'startup_industries' => 'Energy, CleanTech',
|
||||
'preferred_stage' => 'MVP',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'high',
|
||||
'startup_name' => 'SunStore',
|
||||
'startup_desc' => 'Long-duration thermal energy storage systems for concentrated solar power.',
|
||||
'funding_target' => 1000000.00
|
||||
],
|
||||
[
|
||||
'full_name' => 'Maria Garcia',
|
||||
'email' => 'maria@green-leaf.es',
|
||||
'role' => 'founder',
|
||||
'university' => 'Polytechnic University of Madrid',
|
||||
'graduation_year' => 2019,
|
||||
'bio' => 'Agronomist bringing data science to urban farming. Building vertical farms that use 95% less water.',
|
||||
'interests' => 'Agtech, Food Security, Data Science',
|
||||
'country' => 'Spain',
|
||||
'skills' => 'Data Analysis, Agronomy, IoT',
|
||||
'years_experience' => 4,
|
||||
'previous_startup_exp' => 0,
|
||||
'previous_startup_desc' => NULL,
|
||||
'startup_industries' => 'Agtech',
|
||||
'preferred_stage' => 'Idea',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'high',
|
||||
'startup_name' => 'GreenLeaf',
|
||||
'startup_desc' => 'Automated vertical farming modules for urban environments.',
|
||||
'funding_target' => 200000.00
|
||||
],
|
||||
[
|
||||
'full_name' => 'James Wilson',
|
||||
'email' => 'j.wilson@secure-link.ca',
|
||||
'role' => 'founder',
|
||||
'university' => 'University of Waterloo',
|
||||
'graduation_year' => 2013,
|
||||
'bio' => 'Cybersecurity expert with a focus on IoT vulnerability management. Protecting the connected world.',
|
||||
'interests' => 'Cybersecurity, IoT, Software',
|
||||
'country' => 'Canada',
|
||||
'skills' => 'Network Security, Penetration Testing, C++',
|
||||
'years_experience' => 11,
|
||||
'previous_startup_exp' => 1,
|
||||
'previous_startup_desc' => 'Lead security researcher at a major tech firm.',
|
||||
'startup_industries' => 'Cybersecurity',
|
||||
'preferred_stage' => 'Scaling',
|
||||
'commitment_level' => 'full-time',
|
||||
'risk_tolerance' => 'medium',
|
||||
'startup_name' => 'SecureLink',
|
||||
'startup_desc' => 'Automated security patching and monitoring for enterprise IoT networks.',
|
||||
'funding_target' => 850000.00
|
||||
'industry' => 'Fintech',
|
||||
'sub_industry' => 'Cross-border Payments',
|
||||
'business_model' => 'Transaction fee (0.5%) on cross-border settlements.',
|
||||
'product_service' => 'API-first payment gateway for multi-currency invoicing.',
|
||||
'operational_stage' => 'Scaling',
|
||||
'cofounder_equity_pct' => '5-8%',
|
||||
'cofounder_equity_type' => 'Founder Shares',
|
||||
'cofounder_responsibilities' => 'Chief Technology Officer - manage engineering team and security.',
|
||||
'desired_cofounder_experience' => 'Scalable backend systems, FinTech compliance.',
|
||||
'cofounder_commitment' => 'Full-time',
|
||||
'other_partnership_details' => 'Must be based in or willing to relocate to Milan.',
|
||||
'current_cash_balance' => 1200000.00,
|
||||
'burn_rate' => 95000.00,
|
||||
'outstanding_debt' => '£200k Venture Debt',
|
||||
'accounts_receivable_payable' => '£400k / £150k',
|
||||
'funding_target' => 1200000.00,
|
||||
'recommended_return_rate' => 5.5,
|
||||
'founder_return_rate' => 6.0
|
||||
]
|
||||
];
|
||||
|
||||
@ -225,8 +126,8 @@ $investors = [
|
||||
'full_name' => 'Sofia Moretti',
|
||||
'email' => 'sofia@moretti-capital.com',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Managing Partner at Moretti Capital. Passionate about green energy and circular economy startups.',
|
||||
'interests' => 'Renewables, Sustainability, Circular Economy',
|
||||
'bio' => 'Managing Partner at Moretti Capital.',
|
||||
'interests' => 'Renewables, Sustainability',
|
||||
'investment_appetite' => '$100k - $500k',
|
||||
'country' => 'Italy'
|
||||
],
|
||||
@ -234,89 +135,31 @@ $investors = [
|
||||
'full_name' => 'Robert Sterling',
|
||||
'email' => 'robert@sterling-ventures.com',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Angel investor with a background in SaaS. Looking for scalable B2B platforms with strong unit economics.',
|
||||
'interests' => 'SaaS, B2B, Cloud',
|
||||
'bio' => 'Angel investor with a background in SaaS.',
|
||||
'interests' => 'SaaS, B2B',
|
||||
'investment_appetite' => '$50k - $250k',
|
||||
'country' => 'USA'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Aisha Khan',
|
||||
'email' => 'aisha@impact-global.co',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Focusing on ventures that combine financial returns with measurable social and environmental impact.',
|
||||
'interests' => 'Social Impact, Edtech, Healthtech',
|
||||
'investment_appetite' => '$25k - $150k',
|
||||
'country' => 'UK'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Chen Wei',
|
||||
'email' => 'chen.wei@tech-pioneer.sg',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Serial entrepreneur turned investor. Investing in deep tech, AI, and robotics in Southeast Asia.',
|
||||
'interests' => 'Deep Tech, AI, Robotics',
|
||||
'investment_appetite' => '$200k - $1M',
|
||||
'country' => 'Singapore'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Lucia Fernandez',
|
||||
'email' => 'lucia@madrid-angels.es',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Active angel investor in the Spanish ecosystem. Supporting early-stage consumer tech and marketplaces.',
|
||||
'interests' => 'Marketplaces, Consumer Tech, Lifestyle',
|
||||
'investment_appetite' => '$10k - $100k',
|
||||
'country' => 'Spain'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Hans Mueller',
|
||||
'email' => 'hans@industry40.de',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Former COO of a major manufacturing firm. Investing in Industry 4.0 and industrial IoT solutions.',
|
||||
'interests' => 'Industry 4.0, IoT, Logistics',
|
||||
'investment_appetite' => '$150k - $750k',
|
||||
'country' => 'Germany'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Priya Sharma',
|
||||
'email' => 'priya@future-work.in',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Supporting founders who are building the tools for the next generation of workers.',
|
||||
'interests' => 'Future of Work, HRTech, Edtech',
|
||||
'investment_appetite' => '$50k - $300k',
|
||||
'country' => 'India'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Michael O\'Reilly',
|
||||
'email' => 'michael@bio-bridge.ie',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Venture capitalist focused on life sciences, drug discovery, and medical devices.',
|
||||
'interests' => 'Biotech, Life Sciences, Pharma',
|
||||
'investment_appetite' => '$500k - $2M',
|
||||
'country' => 'Ireland'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Kenji Sato',
|
||||
'email' => 'kenji@global-trade.jp',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Investing in the infrastructure that enables global e-commerce and cross-border trade.',
|
||||
'interests' => 'E-commerce, Fintech, Trade',
|
||||
'investment_appetite' => '$100k - $400k',
|
||||
'country' => 'Japan'
|
||||
],
|
||||
[
|
||||
'full_name' => 'Isabella Rossi',
|
||||
'email' => 'isabella@luxury-ventures.fr',
|
||||
'role' => 'investor',
|
||||
'bio' => 'Passionate about the intersection of high fashion and technology. Investing in LuxuryTech.',
|
||||
'interests' => 'Fashion Tech, Luxury, Web3',
|
||||
'investment_appetite' => '$75k - $500k',
|
||||
'country' => 'France'
|
||||
]
|
||||
];
|
||||
|
||||
$stmt_user = $db->prepare("INSERT IGNORE INTO users (full_name, email, password, role, university, graduation_year, bio, interests, country, skills, years_experience, previous_startup_exp, previous_startup_desc, startup_industries, preferred_stage, commitment_level, risk_tolerance, investment_appetite, verified, onboarding_completed)
|
||||
VALUES (:full_name, :email, :password, :role, :university, :graduation_year, :bio, :interests, :country, :skills, :years_experience, :previous_startup_exp, :previous_startup_desc, :startup_industries, :preferred_stage, :commitment_level, :risk_tolerance, :investment_appetite, 1, 1)");
|
||||
$stmt_user = $db->prepare("INSERT INTO users (full_name, email, password, role, university, graduation_year, bio, interests, country, skills, years_experience, previous_startup_exp, investment_appetite, verified, onboarding_completed)
|
||||
VALUES (:full_name, :email, :password, :role, :university, :graduation_year, :bio, :interests, :country, :skills, :years_experience, :previous_startup_exp, :investment_appetite, 1, 1)");
|
||||
|
||||
$stmt_startup = $db->prepare("INSERT INTO startups (name, description, founder_id, funding_target, status) VALUES (:name, :description, :founder_id, :funding_target, 'public')");
|
||||
$stmt_startup = $db->prepare("INSERT INTO startups (
|
||||
name, description, founder_id, funding_target, status,
|
||||
legal_name, country, industry, sub_industry, business_model, product_service, operational_stage,
|
||||
cofounder_equity_pct, cofounder_equity_type, cofounder_responsibilities, desired_cofounder_experience, cofounder_commitment, other_partnership_details,
|
||||
current_cash_balance, burn_rate, outstanding_debt, accounts_receivable_payable,
|
||||
doc_income_statements, doc_balance_sheets, doc_cash_flow_statements, doc_revenue_breakdown, doc_gross_margin, doc_opex_breakdown,
|
||||
recommended_return_rate, founder_return_rate
|
||||
) VALUES (
|
||||
:name, :description, :founder_id, :funding_target, 'public',
|
||||
:legal_name, :country, :industry, :sub_industry, :business_model, :product_service, :operational_stage,
|
||||
:cofounder_equity_pct, :cofounder_equity_type, :cofounder_responsibilities, :desired_cofounder_experience, :cofounder_commitment, :other_partnership_details,
|
||||
:current_cash_balance, :burn_rate, :outstanding_debt, :accounts_receivable_payable,
|
||||
'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf',
|
||||
:recommended_return_rate, :founder_return_rate
|
||||
)");
|
||||
|
||||
$stmt_round = $db->prepare("INSERT INTO funding_rounds (startup_id, funding_goal, status) VALUES (:startup_id, :funding_goal, 'Active')");
|
||||
|
||||
@ -335,11 +178,6 @@ foreach ($founders as $f) {
|
||||
':skills' => $f['skills'],
|
||||
':years_experience' => $f['years_experience'],
|
||||
':previous_startup_exp' => $f['previous_startup_exp'],
|
||||
':previous_startup_desc' => $f['previous_startup_desc'],
|
||||
':startup_industries' => $f['startup_industries'],
|
||||
':preferred_stage' => $f['preferred_stage'],
|
||||
':commitment_level' => $f['commitment_level'],
|
||||
':risk_tolerance' => $f['risk_tolerance'],
|
||||
':investment_appetite' => NULL
|
||||
]);
|
||||
|
||||
@ -349,7 +187,26 @@ foreach ($founders as $f) {
|
||||
':name' => $f['startup_name'],
|
||||
':description' => $f['startup_desc'],
|
||||
':founder_id' => $founder_id,
|
||||
':funding_target' => $f['funding_target']
|
||||
':funding_target' => $f['funding_target'],
|
||||
':legal_name' => $f['legal_name'],
|
||||
':country' => $f['country'],
|
||||
':industry' => $f['industry'],
|
||||
':sub_industry' => $f['sub_industry'],
|
||||
':business_model' => $f['business_model'],
|
||||
':product_service' => $f['product_service'],
|
||||
':operational_stage' => $f['operational_stage'],
|
||||
':cofounder_equity_pct' => $f['cofounder_equity_pct'],
|
||||
':cofounder_equity_type' => $f['cofounder_equity_type'],
|
||||
':cofounder_responsibilities' => $f['cofounder_responsibilities'],
|
||||
':desired_cofounder_experience' => $f['desired_cofounder_experience'],
|
||||
':cofounder_commitment' => $f['cofounder_commitment'],
|
||||
':other_partnership_details' => $f['other_partnership_details'],
|
||||
':current_cash_balance' => $f['current_cash_balance'],
|
||||
':burn_rate' => $f['burn_rate'],
|
||||
':outstanding_debt' => $f['outstanding_debt'],
|
||||
':accounts_receivable_payable' => $f['accounts_receivable_payable'],
|
||||
':recommended_return_rate' => $f['recommended_return_rate'],
|
||||
':founder_return_rate' => $f['founder_return_rate']
|
||||
]);
|
||||
|
||||
$startup_id = $db->lastInsertId();
|
||||
@ -358,8 +215,6 @@ foreach ($founders as $f) {
|
||||
':funding_goal' => $f['funding_target']
|
||||
]);
|
||||
echo "Created founder {$f['full_name']} and startup {$f['startup_name']}\n";
|
||||
} else {
|
||||
echo "Founder {$f['full_name']} already exists, skipping startup creation.\n";
|
||||
}
|
||||
}
|
||||
|
||||
@ -378,19 +233,11 @@ foreach ($investors as $i) {
|
||||
':skills' => NULL,
|
||||
':years_experience' => 0,
|
||||
':previous_startup_exp' => 0,
|
||||
':previous_startup_desc' => NULL,
|
||||
':startup_industries' => NULL,
|
||||
':preferred_stage' => NULL,
|
||||
':commitment_level' => NULL,
|
||||
':risk_tolerance' => NULL,
|
||||
':investment_appetite' => $i['investment_appetite']
|
||||
]);
|
||||
if ($db->lastInsertId()) {
|
||||
echo "Created investor {$i['full_name']}\n";
|
||||
} else {
|
||||
echo "Investor {$i['full_name']} already exists.\n";
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done!\n";
|
||||
|
||||
echo "Done!\n";
|
||||
@ -248,39 +248,43 @@ if ($canSeeHistory) {
|
||||
<h2 class="section-title"><i class="fas fa-info-circle" style="color: var(--accent-blue);"></i> About the Venture</h2>
|
||||
<div style="margin-bottom: 25px;">
|
||||
<h4 style="margin-bottom: 10px; font-size: 14px; text-transform: uppercase; color: var(--text-secondary); opacity: 0.7;">Business Model</h4>
|
||||
<p style="font-size: 16px; line-height: 1.6; color: var(--text-secondary);"><?= htmlspecialchars($startup['business_model'] ?: $startup['description']) ?></p>
|
||||
<p style="font-size: 16px; line-height: 1.6; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['business_model'] ?: $startup['description'])) ?></p>
|
||||
</div>
|
||||
<div>
|
||||
<h4 style="margin-bottom: 10px; font-size: 14px; text-transform: uppercase; color: var(--text-secondary); opacity: 0.7;">Product/Service</h4>
|
||||
<p style="font-size: 16px; line-height: 1.6; color: var(--text-secondary);"><?= htmlspecialchars($startup['product_service'] ?: 'Details coming soon.') ?></p>
|
||||
<p style="font-size: 16px; line-height: 1.6; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['product_service'] ?: 'Details coming soon.')) ?></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card" style="margin-bottom: 40px;">
|
||||
<h2 class="section-title"><i class="fas fa-chart-pie" style="color: var(--accent-blue);"></i> Equity Structure</h2>
|
||||
<h2 class="section-title"><i class="fas fa-handshake" style="color: var(--accent-blue);"></i> Co-founder Matching & Partnership</h2>
|
||||
<div class="data-grid">
|
||||
<div class="data-item">
|
||||
<div class="data-label">Total Shares</div>
|
||||
<div class="data-value"><?= number_format($startup['total_shares'] ?? 0) ?></div>
|
||||
<div class="data-label">Equity Offered</div>
|
||||
<div class="data-value"><?= htmlspecialchars($startup['cofounder_equity_pct'] ?: 'N/A') ?></div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">ESOP Pool</div>
|
||||
<div class="data-value"><?= number_format($startup['esop_percentage'] ?? 0, 1) ?>%</div>
|
||||
<div class="data-label">Commitment</div>
|
||||
<div class="data-value"><?= htmlspecialchars($startup['cofounder_commitment'] ?: 'N/A') ?></div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">Equity Type</div>
|
||||
<div class="data-value"><?= htmlspecialchars($startup['cofounder_equity_type'] ?: 'N/A') ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px;">
|
||||
<div class="data-item">
|
||||
<div class="data-label">Founder Ownership</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['founder_ownership'] ?: 'N/A')) ?></div>
|
||||
<div class="data-label">Core Responsibilities</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['cofounder_responsibilities'] ?: 'N/A')) ?></div>
|
||||
</div>
|
||||
<div class="data-item">
|
||||
<div class="data-label">Investor Ownership</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['investor_ownership'] ?: 'N/A')) ?></div>
|
||||
<div class="data-label">Desired Background</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['desired_cofounder_experience'] ?: 'N/A')) ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="data-item" style="width: 100%;">
|
||||
<div class="data-label">Convertible Instruments</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['convertible_instruments'] ?: 'None reported.')) ?></div>
|
||||
<div class="data-label">Other Partnership Details</div>
|
||||
<div style="font-size: 14px; color: var(--text-secondary);"><?= nl2br(htmlspecialchars($startup['other_partnership_details'] ?: 'None reported.')) ?></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -296,6 +300,18 @@ if ($canSeeHistory) {
|
||||
<div class="data-value">£<?= number_format($startup['burn_rate'] ?? 0, 2) ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; margin-bottom: 25px; border: 1px solid var(--border-color);">
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 15px;">
|
||||
<div>
|
||||
<div class="data-label" style="font-size: 10px;">Outstanding Debt</div>
|
||||
<div style="font-size: 14px;"><?= htmlspecialchars($startup['outstanding_debt'] ?: 'None') ?></div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="data-label" style="font-size: 10px;">Accounts Receivable/Payable</div>
|
||||
<div style="font-size: 14px;"><?= htmlspecialchars($startup['accounts_receivable_payable'] ?: 'N/A') ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 style="margin-bottom: 15px; font-size: 14px; text-transform: uppercase; color: var(--text-secondary); opacity: 0.7;">Historical Documentation</h4>
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px;">
|
||||
@ -459,6 +475,9 @@ if ($canSeeHistory) {
|
||||
</div>
|
||||
</div>
|
||||
<a href="messages.php?chat_with=<?= $founder['id'] ?>" class="btn btn-secondary" style="width: 100%; margin-top: 20px; padding: 12px; border-radius: 12px;">Send Message</a>
|
||||
<?php if ($user['role'] === 'founder' && $startup['founder_id'] == $user_id): ?>
|
||||
<a href="create_startup.php?id=<?= $startup_id ?>" class="btn btn-secondary" style="width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px;"><i class="fas fa-edit"></i> Edit Profile</a>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
@ -472,4 +491,4 @@ if ($canSeeHistory) {
|
||||
|
||||
<script src="assets/js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user