|
|
|
@ -159,6 +159,7 @@ class OtherController extends CommonController
|
|
|
|
$courses2 = Course::where('type', $courseType->id)
|
|
|
|
$courses2 = Course::where('type', $courseType->id)
|
|
|
|
// ->where('start_date', '<=', $end_date)
|
|
|
|
// ->where('start_date', '<=', $end_date)
|
|
|
|
// ->where('start_date', '>=', $start_date)
|
|
|
|
// ->where('start_date', '>=', $start_date)
|
|
|
|
|
|
|
|
->whereIn('id', $courses->pluck('id'))
|
|
|
|
->get();
|
|
|
|
->get();
|
|
|
|
foreach ($courses2 as $course) {
|
|
|
|
foreach ($courses2 as $course) {
|
|
|
|
$courseTypesSum[] = [
|
|
|
|
$courseTypesSum[] = [
|
|
|
|
|