1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00

Правки после слияния

This commit is contained in:
ashen-1-dev
2020-12-17 00:27:04 +07:00
29 changed files with 1206 additions and 100 deletions

View File

@@ -45,6 +45,7 @@ class TimetableController extends Controller
'class' => $class,
]);
}
$dateTimetables = [];
//if (!$filterTimetables->isEmpty()) {
for ($i = 0; $i < 6; $i++) {
@@ -53,9 +54,8 @@ class TimetableController extends Controller
->addDays($i)
->format('Y-m-d');
array_push($dateTimetables, [$date => $filterTimetables->where('date', $date)->values()]);
}
//}
// }
}
return response()->json($dateTimetables, 200);
}