|
|
|
|
@ -243,7 +243,7 @@ class CourseController extends CommonController
|
|
|
|
|
*/
|
|
|
|
|
public function myCourseContent()
|
|
|
|
|
{
|
|
|
|
|
$list = CourseContent::with('course.typeDetail', 'teacher')->whereHas('course', function ($query) {
|
|
|
|
|
$list = CourseContent::with('course.typeDetail', 'teacher','courseContentEvaluation')->whereHas('course', function ($query) {
|
|
|
|
|
$query->where('course_status', '!=', 40)->where('course_content_status', 1);
|
|
|
|
|
$query->whereHas('courseSigns', function ($query) {
|
|
|
|
|
$query->where('user_id', $this->getUserId())->where('status', 1)->where(function ($q) {
|
|
|
|
|
|