|
@@ -38,8 +38,9 @@ class AgentController extends Controller
|
|
$query = $query->pushCriteria(new OrderBy('id','DESC'));
|
|
$query = $query->pushCriteria(new OrderBy('id','DESC'));
|
|
}
|
|
}
|
|
$list = $query->paginate();
|
|
$list = $query->paginate();
|
|
- dd($list);
|
|
|
|
|
|
+
|
|
foreach ($list as $item){
|
|
foreach ($list as $item){
|
|
|
|
+ dd($item->user);
|
|
$product = AlbumProductPriceModel::where([['agent_id',$item->id],['store_id',$this->getStoreId()]])->first();
|
|
$product = AlbumProductPriceModel::where([['agent_id',$item->id],['store_id',$this->getStoreId()]])->first();
|
|
if(!empty($product)){
|
|
if(!empty($product)){
|
|
$item->product_name = $product['mobile'];
|
|
$item->product_name = $product['mobile'];
|