|
|
|
@ -69,7 +69,7 @@ class HomeController extends Controller |
|
|
|
$mp = LanzuMpInfo::where('admin_user_id',Admin::user()->id)->first(); |
|
|
|
$marketIds = Market::where('mp_id',$mp->id)->pluck('id')->toArray(); |
|
|
|
return $content->header('控制面板') |
|
|
|
->description('欢迎回到懒族后台') |
|
|
|
->description('欢迎回到链街后台') |
|
|
|
->body(function (Row $row) use ($marketIds) { |
|
|
|
$row->column(3, function (Column $column) { |
|
|
|
$column->row(new Examples\Community\TotalAmount(Admin::user()->id,Type::BALANCE_USER_TYPE_MP)); |
|
|
|
@ -100,7 +100,7 @@ class HomeController extends Controller |
|
|
|
protected function lanzu_mm(Content $content) |
|
|
|
{ |
|
|
|
return $content->header('控制面板') |
|
|
|
->description('欢迎回到懒族后台') |
|
|
|
->description('欢迎回到链街后台') |
|
|
|
->body(function (Row $row) { |
|
|
|
$row->column(3, function (Column $column) { |
|
|
|
$column->row(new Examples\Community\TotalAmount(Admin::user()->id,Type::BALANCE_USER_TYPE_MM)); |
|
|
|
@ -121,7 +121,7 @@ class HomeController extends Controller |
|
|
|
{ |
|
|
|
$uid = LanzuUserRelationBind::pluck('user_id')->toArray(); |
|
|
|
return $content->header('控制面板') |
|
|
|
->description('欢迎回到懒族后台') |
|
|
|
->description('欢迎回到链街后台') |
|
|
|
->body(function (Row $row)use ($uid) { |
|
|
|
$row->column(3, function (Column $column) { |
|
|
|
$column->row(new Examples\Community\TotalCommunity()); |
|
|
|
@ -176,7 +176,7 @@ class HomeController extends Controller |
|
|
|
->pluck('lanzu_order_main.user_id') |
|
|
|
->toArray();//获取绑定社区的所有用户
|
|
|
|
return $content->header('控制面板') |
|
|
|
->description('欢迎回到懒族后台') |
|
|
|
->description('欢迎回到链街后台') |
|
|
|
->body(function (Row $row) use ($uid) { |
|
|
|
$row->column(3, function (Column $column) { |
|
|
|
$column->row(new Examples\Community\TotalAmount(Admin::user()->id,Type::BALANCE_USER_TYPE_CS)); |
|
|
|
@ -224,7 +224,7 @@ class HomeController extends Controller |
|
|
|
{ |
|
|
|
$marketId = Auth::getMarket(); |
|
|
|
return $content->header('控制面板') |
|
|
|
->description('欢迎回到懒族后台') |
|
|
|
->description('欢迎回到链街后台') |
|
|
|
->body(function (Row $row)use ($marketId) { |
|
|
|
$row->column(4, function (Column $column)use ($marketId) { |
|
|
|
$column->row(new Examples\ServiceCard\TotalStore($marketId,'商户数')); |
|
|
|
|