|
|
@ -268,7 +268,8 @@ class AgentService |
|
|
|
//execute query get list |
|
|
|
//execute query get list |
|
|
|
$listAgentGet = $myAgentDown->get(); |
|
|
|
$listAgentGet = $myAgentDown->get(); |
|
|
|
|
|
|
|
|
|
|
|
$allAgentInGeneral = $this->modelAgentUser->byParentPath($agentId)->joinAgent()->get(); |
|
|
|
// get all by parent path with root |
|
|
|
|
|
|
|
$allAgentInGeneral = $this->modelAgentUser->byParentPath($myAgent->agent_root_id)->joinAgent()->get(); |
|
|
|
$AgentById = []; |
|
|
|
$AgentById = []; |
|
|
|
if(!empty($allAgentInGeneral)){ |
|
|
|
if(!empty($allAgentInGeneral)){ |
|
|
|
foreach($allAgentInGeneral as $vAgent){ |
|
|
|
foreach($allAgentInGeneral as $vAgent){ |
|
|
|