============================================================
       SMART ADMIN NOTIFICATION SCRIPT - SETUP GUIDE
============================================================

Is script ko sahi se chalane ke liye aapko niche diye gaye steps follow karne honge:

STEP 1: DATABASE CONNECTION (notify_admin.php)
----------------------------------------------
Agar aap 'neworder.php' ke sath ise use kar rahe hain, toh ye 
automatic aapke purane connection ($conn) ko use karega. 
Lekin agar aap ise kisi alag script me chalana chahte hain, 
toh file ke upar diye gaye Database Host, User, aur Password 
ko apne database se match karlein.


STEP 2: API & WHATSAPP SETTINGS (notify_admin.php)
--------------------------------------------------
File 'notify_admin.php' ko edit karein aur line number 10-15 ke 
aas-pass ye details badlein:

1. $api_key   -> Yahan apni MPWA API Key dalein.
2. $sender_no -> Jis number se msg bhejna hai (Instance ID wala).
3. $admin_no  -> Jis number par Admin Alert chahiye (Aapka No).
4. $api_url   -> Apne MPWA panel ka URL dalein (Send Message API).


STEP 3: SCRIPT INTEGRATION (neworder.php)
-----------------------------------------
Admin ko alert bhejne ke liye, 'neworder.php' me jahan order 
success hota hai, wahan ye code paste karein:

include 'notify_admin.php'; 
if (function_exists('send_admin_order_alert')) {
    send_admin_order_alert($last_id);
}


ZAROORI NOTE:
-------------
- Admin ka number bina '+' sign ke hona chahiye (e.g., 918273147063).
- 'notify_admin.php' aur 'neworder.php' dono ek hi folder me honi chahiye.
- PHP version 7.4 ya usse upar hona chahiye.

============================================================
              DEVELOPED BY: ABUSHEHMA 91-8273147063
============================================================