" . ($status == 'active' ? '🤖 Bot Activated!' : '⏳ Bot Subscription Created') . "

Hello " . htmlspecialchars($user['first_name']) . ",

" . ($status == 'active' ? "

Your " . htmlspecialchars($plan_name) . " trading bot has been successfully activated and is now trading!

" : "

Your subscription to " . htmlspecialchars($plan_name) . " has been created but is currently pending.

") . "

Subscription Details:

Bot Plan: " . htmlspecialchars($plan_name) . "

Subscription Fee: $" . number_format($subscription_fee, 2) . " (paid)

Current Fund Balance: $" . number_format($fund_balance, 2) . "

Status: " . ucfirst($status) . "

Date: " . date('F d, Y', strtotime($date)) . "

" . ($status == 'pending' ? "
Action Required: Your bot requires a minimum trading balance of $" . number_format($min_balance, 2) . ". Please add funds to your account to activate the bot.
" : "
✅ Bot Active: Your trading bot is now live and will start executing trades immediately. Your fund balance of $" . number_format($fund_balance, 2) . " has been locked for trading.
") . "
" . ($status == 'active' ? "

Next Steps:

" : "

To Activate Your Bot:

  1. Login to your account
  2. Go to 'Add Funds' section
  3. Deposit at least $" . number_format($min_balance - $fund_balance, 2) . " more
  4. Your bot will activate automatically once minimum balance is met
") . "

Go to Dashboard