|
|
|
@ -140,6 +140,7 @@ class OtherController extends CommonController
|
|
|
|
$list['course_signs_total'] = CourseSign::whereDate('created_at', '>=', $start_date)
|
|
|
|
$list['course_signs_total'] = CourseSign::whereDate('created_at', '>=', $start_date)
|
|
|
|
->whereDate('created_at', '<=', $end_date)
|
|
|
|
->whereDate('created_at', '<=', $end_date)
|
|
|
|
->whereNotIn('status', [4, 5])
|
|
|
|
->whereNotIn('status', [4, 5])
|
|
|
|
|
|
|
|
->distinct('user_id')
|
|
|
|
// ->where(function ($query) use ($courses) {
|
|
|
|
// ->where(function ($query) use ($courses) {
|
|
|
|
// $query->whereIn('course_id', $courses->pluck('id'));
|
|
|
|
// $query->whereIn('course_id', $courses->pluck('id'));
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
|