0, 'approved' => 5, 'rejected' => 2, 'documents_needed' => 0, 'total_applications' => 7, 'commission_this_month' => 12500.00, 'total_commission' => 45000.00 ]; // Mock functions for testing function reviewAgentApplication($agentId, $adminId, $status, $notes = '') { return true; // Mock success } function searchAgents($sponsorId, $searchTerm) { return []; // Mock empty results } } else { // Include agent functions require_once $agentFunctionsPath; // Handle form submissions if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['action'])) { if ($_POST['action'] === 'review_agent') { $agentId = $_POST['agent_id'] ?? 0; $status = $_POST['status'] ?? ''; $notes = $_POST['notes'] ?? ''; if (reviewAgentApplication($agentId, $userId, $status, $notes)) { $message = "Agent application " . ($status === 'approved' ? 'approved' : 'rejected') . " successfully!"; } else { $error = "Failed to update agent application."; } } elseif ($_POST['action'] === 'search_agents') { $searchTerm = $_POST['search_term'] ?? ''; $agents = searchAgents($userId, $searchTerm); $pendingAgents = $agents; // Use search results } } } // Get pending agents and stats if (!isset($pendingAgents)) { $pendingAgents = getPendingAgents($userId); } $agentStats = getAgentStats($userId); } // Debug output error_log("User ID: " . $userId); error_log("Pending agents count: " . count($pendingAgents)); ?> Japanese Motors — Agent Approval
Jmotors

Pending Approvals

Pending Applications

Approved This Month

Agents

No pending agent applications

New agent applications will appear here for review

Applied On

Location

Approval Stats

Total Applications
Approved
Rejected
Pending

Commission Earnings

This Month KES
Total Earned KES

Agent Approval Guidelines

What are the requirements for agent approval?

Agents must meet the following criteria: valid government ID, minimum age of 18 years, completed training program, and minimum initial deposit of 1,000 KES. Additional verification may be required based on location and other factors.

How long does the approval process take?

The standard approval process takes 24-48 hours after all required documents are submitted. Delays may occur if additional verification is needed. You will receive a notification once the application has been processed.

What commissions do I earn from approved agents?

You earn 10% commission on your direct agents' earnings for the first 3 months, then 5% ongoing. Additionally, you receive 2% override commission on your team's second level agents. Commissions are paid weekly every Monday.