|
|
|
@ -134,6 +134,7 @@ class OtherController extends CommonController
|
|
|
|
// ->where('start_date', '<=', $end_date)
|
|
|
|
// ->where('start_date', '<=', $end_date)
|
|
|
|
// ->where('start_date', '>=', $start_date)
|
|
|
|
// ->where('start_date', '>=', $start_date)
|
|
|
|
->get();
|
|
|
|
->get();
|
|
|
|
|
|
|
|
dump($courses->toArray());
|
|
|
|
// 被投企业数
|
|
|
|
// 被投企业数
|
|
|
|
$list['course_signs_invested'] = CourseSign::yhInvested($start_date, $end_date);
|
|
|
|
$list['course_signs_invested'] = CourseSign::yhInvested($start_date, $end_date);
|
|
|
|
// 报名人数
|
|
|
|
// 报名人数
|
|
|
|
@ -160,6 +161,7 @@ class OtherController extends CommonController
|
|
|
|
// ->where('start_date', '<=', $end_date)
|
|
|
|
// ->where('start_date', '<=', $end_date)
|
|
|
|
// ->where('start_date', '>=', $start_date)
|
|
|
|
// ->where('start_date', '>=', $start_date)
|
|
|
|
->get();
|
|
|
|
->get();
|
|
|
|
|
|
|
|
dump($courses2->toArray());
|
|
|
|
foreach ($courses2 as $course) {
|
|
|
|
foreach ($courses2 as $course) {
|
|
|
|
$courseTypesSum[] = [
|
|
|
|
$courseTypesSum[] = [
|
|
|
|
'course_type' => $courseType->name,
|
|
|
|
'course_type' => $courseType->name,
|
|
|
|
|