Merge remote-tracking branch 'origin/master'

# Conflicts:
#	app/Http/Controllers/User/UserSubjectsController.php
This commit is contained in:
barwie2@st.amu.edu.pl 2019-12-16 15:46:03 +01:00
commit 72fda159ce

View File

@ -20,7 +20,11 @@ class UserSubjectsController extends Controller
$weekdays = ['Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota', 'Niedziela'];
// $types = ['Lecture', 'Excercises', 'Labs', 'Other'];
$defaultTime = date("H:i");
$defaultWeekday = "Poniedziałek";//$weekdays[date('w') - 1];
if(date('w')-1 < 0 ) {
$defaultWeekday = $weekdays[6];
} else {
$defaultWeekday = "Poniedziałek";//$weekdays[date('w') - 1];
}
return view('user.user_subjects', ['subjects' => $subjects, 'weekdays' => $weekdays, 'subjects_grouped' => $subjects_grouped, 'grouped_by' => $groupBy, 'defaultTime' => $defaultTime, 'defaultWeekday' => $defaultWeekday, 'rooms' => $rooms]);
}