@echo off
cls
echo ================================================
echo Bidda School Management Plugin Complete Setup
echo ================================================
echo.
echo This script will run all setup steps for the Bidda School Management plugin.
echo.

REM Pause to let user read
echo Press any key to continue...
pause >nul

echo.
echo Step 1: Installing plugin files to WordPress...
php setup-bidda-plugin.php
if %errorlevel% neq 0 (
    echo ERROR: Plugin installation failed
    pause
    exit /b %errorlevel%
)
echo ✓ Plugin installation completed
echo.

echo Step 2: Creating database tables...
php create-bidda-tables.php
if %errorlevel% neq 0 (
    echo ERROR: Database table creation failed
    pause
    exit /b %errorlevel%
)
echo ✓ Database tables created
echo.

echo Step 3: Adding plugin options...
php add-bidda-options.php
if %errorlevel% neq 0 (
    echo ERROR: Plugin options setup failed
    pause
    exit /b %errorlevel%
)
echo ✓ Plugin options added
echo.

echo Step 4: Verifying installation...
php verify-bidda-plugin.php
if %errorlevel% neq 0 (
    echo WARNING: Verification encountered issues
) else (
    echo ✓ Installation verified successfully
)
echo.

echo ================================================
echo Setup Complete!
echo ================================================
echo.
echo The Bidda School Management plugin is now ready to use.
echo.
echo To access the plugin:
echo 1. Log in to your WordPress admin panel
echo 2. Look for the "Bidda School" menu
echo.
echo To use the plugin on frontend pages, use these shortcodes:
echo - [bidda_dashboard]     : Student dashboard
echo - [bidda_student_login] : Student login form
echo - [bidda_student_portal]: Student portal
echo - [bidda_admission_form]: Admission form
echo - [bidda_results]       : Student results
echo - [bidda_fees]          : Fee information
echo.
echo For more information, see BIDDA-WP-SETUP-GUIDE.md
echo.
echo Press any key to exit...
pause >nul