// ── PHONE VERIFICATION MENU ── function openVerifyMenu(phone, event){ const old = document.getElementById('verifyPopup'); if(old){ old.remove(); const ov=document.getElementById('verifyOverlay'); if(ov) ov.remove(); return; } const clean = (phone||'').replace(/[^0-9]/g,'').slice(-10); if(!clean) return; // Find lead context (company name) for smarter search const btn = event.target; const card = btn.closest('.lead-card'); let company='', developer=''; if(card){ const id=card.id.replace('lc-',''); const l=leads.find(x=>x.id===id); if(l){ company=l.developer||''; developer=l.developer||''; } } const overlay = document.createElement('div'); overlay.className='verify-overlay'; overlay.id='verifyOverlay'; overlay.onclick = ()=>{ popup.remove(); overlay.remove(); }; document.body.appendChild(overlay); const popup = document.createElement('div'); popup.className='verify-popup'; popup.id='verifyPopup'; // Build options — prioritised for personal MD/owner numbers const waUrl='https://wa.me/91'+clean; const mcaUrl='https://www.mca.gov.in/mcafoportal/viewCompanyMasterData.do'; const mcaSearchUrl='https://www.mca.gov.in/mcafoportal/showSearchCompanyDetails.do'; const googleUrl='https://www.google.com/search?q='+encodeURIComponent((company?company+' ':'')+'+91'+clean+' director MD owner builder Hyderabad'); const credaiUrl='https://credaihyderabad.org/members'; const reraUrl='https://rera.telangana.gov.in/promoters'; const linkedinUrl='https://www.linkedin.com/search/results/people/?keywords='+encodeURIComponent((company||'builder Hyderabad')); popup.innerHTML = '
✅ Verify Name — +91'+clean+'
' +'
These are personal MD numbers — use WhatsApp or MCA
' // 1. WhatsApp — BEST for personal numbers +'' +'💬
Check WhatsApp Profile
' +'
⭐ BEST — see their name & photo instantly. Most MDs have WA.
' // 2. MCA21 — official govt director registry +'' +'🏛️
MCA21 — Director Search
' +'
Govt registry of all Pvt Ltd directors. Search by company name → get director names.
' // 3. Google with company name +'' +'🔍
Google — '+(company||'company name')+' MD
' +'
Searches number + company name together. Often finds LinkedIn or news articles.
' // 4. CREDAI member list +'' +'🏗️
CREDAI Hyderabad Members
' +'
Cross-check company name in the official CREDAI member list.
' // 5. LinkedIn by company +'' +'💼
LinkedIn — '+(company||'company')+'
' +'
Search by company name to find the MD/Director profile.
' // 6. TSRERA +'' +'📋
TSRERA Promoter Registry
' +'
Official RERA registration — has promoter name + company.
' +'
💡 WhatsApp profile is fastest for personal mobile numbers
'; const rect = event.target.getBoundingClientRect(); const popH = 380; const top = rect.bottom + 6 + popH > window.innerHeight ? Math.max(10, rect.top - popH - 6) : rect.bottom + 6; const left = Math.max(8, Math.min(rect.left, window.innerWidth - 224)); popup.style.top = top+'px'; popup.style.left = left+'px'; document.body.appendChild(popup); } function closeVerifyPopup(){ setTimeout(()=>{ const p=document.getElementById('verifyPopup'); const o=document.getElementById('verifyOverlay'); if(p) p.remove(); if(o) o.remove(); },300); }