Laravel MLM Fixes: $30 Budget

Job ID: 38934327

Budget: $10 – $30 USD

I have a Laravel-based MLM system that needs urgent attention.

Implement Rebirth Fallback Rule for root users with no direct recruits.
Track and Place Rebirths Dynamically under the latest instance of rebirth.
Fix Position Tracking Logic in the downline hierarchy to reflect filled positions accurately.
Update Income Distribution Logic to align with direct income, team income, and rebirth income rules.
For the commission calculation, it should take into account the

Issue 1: Root User Rebirth When There’s No Direct Recruit
Problem:
The root user completes their 12-member downline, qualifying for rebirth. However, rebirth requires placement under a direct recruit, and the root user has no direct recruits.

Issue 2: Rebirth Under Direct Recruit When Rebirth Exists
Problem:
If user A recruits B, and A completes 12 positions, A rebirths (A-1). Now, if B finishes their 12 positions, B seeks to place their rebirth under A. But A has already rebirthed as A-1, so the system needs to locate A-1.

Issue 3: Position Filling in Downlines
Problem:
When a user (e.g., A) directly recruits someone (e.g., C) under their downline (e.g., B), the position is filled, but the system is not reflecting this accurately in the downline hierarchy.

Issue 4: Income Distribution Logic
Problem:
The income distribution rules for direct income and team income are not functioning as expected.

Direct Income: Goes to the person who directly recruits.
Team Income: Goes to the first available position in Level 0 of the current matrix.
Rebirth Income: Should be held and transferred to the team income position in the new matrix.
Related categories: MLM MySQL Laravel