diff --git a/assets/docs/financials/placeholder.pdf b/assets/docs/financials/placeholder.pdf new file mode 100644 index 0000000..97aa405 --- /dev/null +++ b/assets/docs/financials/placeholder.pdf @@ -0,0 +1 @@ +Placeholder for financial document diff --git a/create_startup.php b/create_startup.php index 03650ab..ff2ff65 100644 --- a/create_startup.php +++ b/create_startup.php @@ -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'; -