# WBMCZ — Upload list (Premium Admin Sidebar release)

Server root = jekhane `config.php` ache. Sob path oi root theke.

---

## A. NEW FILES — 6 ta

| # | Full path | Folder | Note |
|---|---|---|---|
| 1 | `admin/includes/sidebar.php` | `admin/includes/` | **Notun folder banate hobe** jodi na thake |
| 2 | `admin/includes/role_filter.php` | `admin/includes/` | |
| 3 | `admin/activity_log.php` | `admin/` | Notun page |
| 4 | `admin/payouts.php` | `admin/` | Notun page |
| 5 | `includes/activity.php` | `includes/` | |
| 6 | `ccpsimigration.php` | root `/` | Chalanor por **delete korben** |

---

## B. MODIFIED FILES — 27 ta

### B1. Root folder `/` — 2 ta

| # | Full path | Ki change holo |
|---|---|---|
| 1 | `db.php` | File er niche 6 line add — `includes/activity.php` load kore `activity_autolog($db)` call kore. try/catch e mora, page break korte parbe na. |
| 2 | `category.php` | 2 ta `INSERT INTO orders` ekhon `category_id` o save kore + `$order_cat_id` variable add. |

### B2. `includes/` folder — 1 ta

| # | Full path | Ki change holo |
|---|---|---|
| 3 | `includes/shares.php` | Notun function `shares_service_category()` add — service er category id ber kore. |

### B3. `admin/` folder — 24 ta

**Sudhu sidebar swap (18 ta)** — purono `<aside>…</aside>` block (≈14 KB) delete kore ek line include:

| # | Full path |
|---|---|
| 4 | `admin/index.php` |
| 5 | `admin/kyc_pending.php` |
| 6 | `admin/notifications.php` |
| 7 | `admin/pending_services.php` |
| 8 | `admin/product_management.php` |
| 9 | `admin/profile.php` |
| 10 | `admin/refer.php` |
| 11 | `admin/reports.php` |
| 12 | `admin/roles.php` |
| 13 | `admin/sellers.php` |
| 14 | `admin/services.php` |
| 15 | `admin/settings.php` |
| 16 | `admin/staff.php` |
| 17 | `admin/transactions.php` |
| 18 | `admin/upgrade_requests.php` |
| 19 | `admin/users.php` |
| 20 | `admin/wallet_history.php` |
| 21 | `admin/withdrawals.php` |

**Sidebar swap + extra logic (5 ta)**

| # | Full path | Extra ki holo |
|---|---|---|
| 22 | `admin/user_list.php` | `?role=` porche, purono sticky filter (`types` + `sub`) e map korche. |
| 23 | `admin/wallet.php` | Notun audience panel `#role_view` — credit/debit total soho, `wallet.php?role=…` diye khole. |
| 24 | `admin/tickets.php` | Notun audience panel `#role_view` — oi audience er sob ticket. |
| 25 | `admin/commissions.php` | `?role=` diye kon tab khulbe thik kore + audience pills. |
| 26 | `admin/orders.php` | **Category-wise filter** `?cat_id=N`, chip row + per-category count, column auto-check. |

**Layout puro rebuild (1 ta)**

| # | Full path | Ki holo |
|---|---|---|
| 27 | `admin/website_requests.php` | Age standalone layout chilo, sidebar chilo na. Ekhon standard admin shell e wrap kora — baki sob page er moto dekhabe. |

---

## C. Folder structure — ki kothay jabe

```
/  (root — config.php jekhane)
├── ccpsimigration.php          ← NEW  (chalaya delete)
├── db.php                      ← MODIFIED
├── category.php                ← MODIFIED
│
├── includes/
│   ├── activity.php            ← NEW
│   └── shares.php              ← MODIFIED
│
└── admin/
    ├── includes/               ← folder na thakle banate hobe
    │   ├── sidebar.php         ← NEW
    │   └── role_filter.php     ← NEW
    │
    ├── activity_log.php        ← NEW
    ├── payouts.php             ← NEW
    │
    ├── index.php               ← MODIFIED
    ├── kyc_pending.php         ← MODIFIED
    ├── notifications.php       ← MODIFIED
    ├── pending_services.php    ← MODIFIED
    ├── product_management.php  ← MODIFIED
    ├── profile.php             ← MODIFIED
    ├── refer.php               ← MODIFIED
    ├── reports.php             ← MODIFIED
    ├── roles.php               ← MODIFIED
    ├── sellers.php             ← MODIFIED
    ├── services.php            ← MODIFIED
    ├── settings.php            ← MODIFIED
    ├── staff.php               ← MODIFIED
    ├── transactions.php        ← MODIFIED
    ├── upgrade_requests.php    ← MODIFIED
    ├── users.php               ← MODIFIED
    ├── wallet_history.php      ← MODIFIED
    ├── withdrawals.php         ← MODIFIED
    ├── user_list.php           ← MODIFIED (+ role filter)
    ├── wallet.php              ← MODIFIED (+ role panel)
    ├── tickets.php             ← MODIFIED (+ role panel)
    ├── commissions.php         ← MODIFIED (+ role tabs)
    ├── orders.php              ← MODIFIED (+ category filter)
    └── website_requests.php    ← MODIFIED (layout rebuild)
```

**Upload korben na:**

- `admin/_sbbackup/` — eta local rollback copy
- `admin/fix_page.php` — purono dev script, kono change hoyni

---

## D. Upload order

1. Age **6 ta NEW file** upload korun (`admin/includes/` folder ta age banate hobe)
2. Tarpor **27 ta MODIFIED file** upload korun
3. Browser e kholun: `https://yourdomain.com/ccpsimigration.php`
4. Sabuj report dekhle **`ccpsimigration.php` server theke delete korun**

Total upload = **6 new + 27 modified = 33 ta file**
