|
|
|
|
@ -79,8 +79,7 @@ class CourseSign extends SoftDeletesModel
|
|
|
|
|
*/
|
|
|
|
|
public static function getStudentList($start_date = null, $end_date = null, $status = null, $course_ids = null)
|
|
|
|
|
{
|
|
|
|
|
$baseQuery = CourseSign::with('user', 'course')
|
|
|
|
|
->where(function ($query) use ($course_ids, $status) {
|
|
|
|
|
$baseQuery = CourseSign::where(function ($query) use ($course_ids, $status) {
|
|
|
|
|
if ($status) {
|
|
|
|
|
$query->where('status', $status);
|
|
|
|
|
}
|
|
|
|
|
|