Merge remote-tracking branch 'origin/master'
# Conflicts: # app/Http/Controllers/User/UserSubjectsController.php
This commit is contained in:
commit
72fda159ce
@ -20,7 +20,11 @@ class UserSubjectsController extends Controller
|
|||||||
$weekdays = ['Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota', 'Niedziela'];
|
$weekdays = ['Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota', 'Niedziela'];
|
||||||
// $types = ['Lecture', 'Excercises', 'Labs', 'Other'];
|
// $types = ['Lecture', 'Excercises', 'Labs', 'Other'];
|
||||||
$defaultTime = date("H:i");
|
$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]);
|
return view('user.user_subjects', ['subjects' => $subjects, 'weekdays' => $weekdays, 'subjects_grouped' => $subjects_grouped, 'grouped_by' => $groupBy, 'defaultTime' => $defaultTime, 'defaultWeekday' => $defaultWeekday, 'rooms' => $rooms]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user