@echo off
echo ========================================
echo Super Admin Dashboard Installation
echo ========================================
echo.

echo [1/4] Refreshing database and running migrations...
php artisan migrate:refresh
echo.

echo [2/4] Seeding roles and permissions...
php artisan db:seed --class=RolePermissionSeeder
echo.

echo [3/4] Seeding demo data...
php artisan db:seed --class=DemoDataSeeder
echo.

echo [4/5] Seeding test data...
php artisan db:seed --class=TestDataSeeder
echo.

REM echo [5/6] Creating 20,000 restaurants...
REM php artisan db:seed --class=MassRestaurantSeeder
REM echo.

echo [6/6] Creating 100 orders (5-6 per restaurant)...
php artisan db:seed --class=MassOrderSeeder
echo.



echo ========================================
echo Installation Complete!
echo ========================================
echo.
echo Super Admin Login:
echo Email: admin@fooddelivery.com
echo Password: admin123
echo.
echo IMPORTANT: Use Laravel URL (Port 8000)
echo Main App: http://127.0.0.1:8000
echo Login: http://127.0.0.1:8000/login
echo Super Admin: http://127.0.0.1:8000/super-admin
echo.
echo Start servers:
echo Terminal 1: php artisan serve
echo Terminal 2: npm run dev
echo.
pause
