@ -74,9 +74,10 @@ class HomeController extends CommonController
->limit(8)
->get();
// 上月满意度评价分析
$lastMonth = date('Y-m', strtotime('-1 month'));
$satisfied = Orders::with('project', 'paramedic')
->whereNotNull('comment')
->where('created_at', 'like', '%' . date('Y-m', strtotime('-1 month') . '%'))
->where('created_at', 'like', '%' . $lastMonth . '%')
->orderBy('score', 'desc')