# RT Commission Dashboard - User Guide

Welcome to the RT Commission Dashboard. This guide will help you navigate the system, manage your network, and track your financial performance.

## 1. Getting Started

### Login
To access the dashboard, enter your registered email and password.

![Login Screen](docs/images/login_screen_1767771116215.png)

*   **Email**: Your registered email address (e.g., `admin@rt.local`)
*   **Password**: Your secure password

## 2. Dashboard Overview (Tổng Quan)

After logging in, you will see the main dashboard. This page provides a high-level view of your business performance.

![Dashboard Overview](docs/images/dashboard_metrics_1767769630895.png)

### Key Metrics
*   **Tổng Doanh Thu (Total Revenue)**: The total value of all approved retail sales.
*   **Tổng Hoa Hồng (Total Commission)**: Your total earnings from all sources (Direct, Shared, Network).
*   **Khách Hàng Mới (New Customers)**: Number of new customers acquired in the selected period.
*   **Quy Mô Hệ Thống (System Scale)**: Total number of agents and collaborators in your downline.

### Filters
*   **Year/Month**: Use the dropdowns at the top to filter data by specific time periods.
*   **User Selector**: (For Admins/Leaders) Select a specific team member to view their individual performance.

## 3. Managing Agents (Đại Lý)

The **Đại Lý** page allows you to view and manage your network hierarchy.

![Agents Page](docs/images/agents_page_v2_1767771246610.png)

*   **Tree View**: Click on the arrows to expand or collapse different branches of your network.
*   **Roles**: Quickly identify user roles (Affiliate, CTV) next to their names.

## 4. Reports (Báo Cáo)

The **Báo Cáo** page contains detailed transaction history. This is where you verify your earnings.

![Reports Page](docs/images/reports_data_table_1767770170455.png)

### Understanding Transaction Types
The "Type" column tells you the nature of the transaction:

*   **Retail**: A direct sale made by you.
*   **Shared (Given)**: A sale where you shared the commission with another user.
*   **Shared (Received)**: A commission you received from another user's sale.

![Shared Transaction](docs/images/reports_shared_received_1767770871667.png)

## 5. Contracts (Hợp Đồng)

The **Hợp Đồng** page is currently under development for Phase 2.

![Contracts Page](docs/images/contracts_page_1767771270737.png)
