================================================================
  BAIT ALAMER CUSTOMER PORTAL - QUICK SETUP GUIDE
================================================================

📍 INSTALLATION PATH
--------------------
Upload this entire 'customer' folder to:
https://baitalamer.alnubala.com/Bait-alamer/customer/

Your portal will be accessible at:
https://baitalamer.alnubala.com/Bait-alamer/customer/login.php

================================================================

🔐 DEFAULT LOGIN CREDENTIALS
-----------------------------
CHANGE THESE IMMEDIATELY IN users.php!

Pricing Manager:
  Username: manager
  Password: manager123

Sales Consultant:
  Username: sales
  Password: sales123

Admin (Manager):
  Username: admin
  Password: admin2025

================================================================

✅ POST-INSTALLATION CHECKLIST
-------------------------------
1. ✓ Upload entire customer/ folder to server
2. ✓ Set file permissions (if Linux/Unix):
     chmod 666 customer/prices.json
     chmod 775 customer/
3. ✓ Change passwords in users.php
4. ✓ Test login with both roles
5. ✓ Test price editing (pricing manager)
6. ✓ Test price viewing (sales consultant)
7. ✓ Enable HTTPS (recommended for production)

================================================================

🎯 TESTING STEPS
-----------------
1. Navigate to: .../customer/login.php
2. Login as 'manager' / 'manager123'
3. You should see:
   - Yellow box with "Save Prices" button
   - Editable price input fields
4. Logout, then login as 'sales' / 'sales123'
5. You should see:
   - NO yellow box
   - Read-only price displays
6. Test calculator functionality (both roles)
7. Test "Save Prices" (manager only)

================================================================

🔧 FILE PERMISSIONS (Linux/Unix servers)
----------------------------------------
cd /path/to/Bait-alamer/customer/
chmod 666 prices.json
chmod 755 *.php
chmod 644 *.js *.css *.json
chmod 644 logo.png

================================================================

⚠️ SECURITY RECOMMENDATIONS
----------------------------
1. Change all default passwords immediately
2. Consider password hashing (see README.md)
3. Enable HTTPS/SSL certificate
4. Uncomment HTTPS redirect in .htaccess
5. Regularly backup prices.json
6. Monitor price_updates.log file

================================================================

📞 SUPPORT
----------
If you encounter issues:
1. Check PHP error logs
2. Verify file permissions
3. Test PHP session support
4. Ensure cookies are enabled in browser
5. Check browser console for JavaScript errors

================================================================

🚀 QUICK TEST
-------------
Windows PowerShell (from Bait-alamer directory):
  cd customer
  php -S localhost:8000

Then open browser to: http://localhost:8000/login.php

================================================================

Built for Bait Alamer | December 2025

