@echo off
title WhatsApp CRM All-in-One Launcher
cd /d "%~dp0"

echo =======================================================
echo         WhatsApp CRM + Free WhatsApp Web Engine
echo =======================================================
echo.

echo [1/2] Starting Free WhatsApp Web Engine in a new window...
start "WhatsApp Web Engine" cmd /k "cd /d %~dp0whatsapp-server && npm start"

echo [2/2] Starting PHP CRM Web Server on http://localhost:8000 ...
echo.
echo Launching your CRM in your browser...
start http://localhost:8000/login

php -S localhost:8000 -t public
pause
