/admin and is restricted to accounts with role: 'admin' set on their Profile record in the database. Any user without this role is automatically redirected to /admin/login.
The sidebar shows a live badge count on Deposits and Withdrawals whenever there are pending requests that require action.
Dashboard metrics
The dashboard at/admin displays four real-time stat cards:
| Metric | Source |
|---|---|
| Total Users | Count of all profiles rows |
| Today Profit | Sum of profit across all profiles |
| Today Volume | Sum of approved transaction amounts since midnight |
| Today Tasks | Sum of completed_tasks_count across all profiles |
Admin sections
User Management
View, search, and edit all user accounts. Adjust balances, change levels, reset task sets, and manage account credentials.
Deposits
Review and approve or reject incoming deposit requests. Approved deposits credit the user’s wallet balance.
Withdrawals
Process outgoing payout requests. Verify the destination wallet address and network before approving.
Bundles
Assign special high-profit bundle orders to specific users. Configure the trigger task index and bonus amounts.
Notify Users
Broadcast notifications to all users or targeted individuals. Supports success, info, warning, and error types.
Level Configuration
Create and edit VIP tier definitions, including activation price, commission rate, tasks per set, and daily set limits.
Task Management
Manage the task item pool. Add, edit, enable, or disable items. Assign items to specific VIP levels.
Platform Settings
Configure global platform options: maintenance mode, registration toggle, financial parameters, branding, and wallet addresses.
Access control
The admin layout (app/admin/layout.tsx) enforces role-based access on every page render:
role field in the profiles table to 'admin'.