|
|
@ -194,7 +194,10 @@ class AgentService |
|
|
|
if (strtolower($upGrant) != strtolower($input['up_grant'])) |
|
|
|
if (strtolower($upGrant) != strtolower($input['up_grant'])) |
|
|
|
continue; // skip |
|
|
|
continue; // skip |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!empty($input['agents_code'])) { // if existing up_geant |
|
|
|
|
|
|
|
if (strtolower($vAgent->code) != strtolower($input['agents_code'])) |
|
|
|
|
|
|
|
continue; // skip |
|
|
|
|
|
|
|
} |
|
|
|
$finalDataTemp[] = [ |
|
|
|
$finalDataTemp[] = [ |
|
|
|
'id' => $vByAgent->id ?? '', |
|
|
|
'id' => $vByAgent->id ?? '', |
|
|
|
'name' => $vByAgent->agent_name ?? '', |
|
|
|
'name' => $vByAgent->agent_name ?? '', |
|
|
|