|
|
|
|
@ -53,6 +53,7 @@ class HomeController extends CommonController
|
|
|
|
|
// 陪护统计表
|
|
|
|
|
$project = Project::get();
|
|
|
|
|
foreach ($project as $item) {
|
|
|
|
|
$item->paramedic_total = Paramedic::where('project_id', $item->id)->count();
|
|
|
|
|
$item->total = Orders::where('project_id', $item->id)->count();
|
|
|
|
|
}
|
|
|
|
|
// 最新陪护单
|
|
|
|
|
@ -91,7 +92,7 @@ class HomeController extends CommonController
|
|
|
|
|
}
|
|
|
|
|
// 本月陪护订单
|
|
|
|
|
$monthAccompany = Project::get();
|
|
|
|
|
foreach ($income as $item) {
|
|
|
|
|
foreach ($monthAccompany as $item) {
|
|
|
|
|
$item->total = Orders::where('project_id', $item->id)
|
|
|
|
|
->where('created_at', 'like', '%' . date('Y-m') . '%')
|
|
|
|
|
->count();
|
|
|
|
|
|