liyinglin 2 years ago
parent 42ef5f21b4
commit 70a83ebff6

@ -68,9 +68,18 @@ class HomeController extends CommonController
->limit(8)
->get();
// 最新投诉信息
$tip = [];
$tip = Orders::with('project')
->whereNotNull('comment')
->orderBy('id', 'desc')
->limit(8)
->get();
// 上月满意度评价分析
$satisfied = [];
$satisfied = Orders::with('project', 'paramedic')
->whereNotNull('comment')
->where('created_at', 'like', '%' . date('Y-m', strtotime('-1 month') . '%'))
->orderBy('score', 'desc')
->limit(8)
->get();
// 本月营收分析
$income = Project::get();
foreach ($income as $item) {

Loading…
Cancel
Save