{{-- This student's own weekly timetable — same grid shape (Время x День недели, discipline-coloured cells) as schedule/teacher.blade.php, built from StudentProfileController::studentScheduleGrid() off the student's active groups only. Own copy of the discipline colour map, same "duplicated per view, keep in sync" convention as the admin/teacher grids. --}} @php $scheduleColors = [ 'Математика' => '#90EE90', 'Физика' => '#ADD8E6', 'Химия' => '#F08080', 'Казахский язык' => '#FFFFE0', 'История' => '#FFB6C1', 'Биология' => '#D3D3D3', 'Английский язык' => '#FFFFE0', 'География' => '#FFA500', 'Русский язык' => '#008000', 'Информатика' => '#FF0000', 'Всемирная история' => '#FFA500', ]; $todayIndex = (int) date('N') - 1; @endphp @push('styles') @endpush
| Время | @foreach ($scheduleDaysOfWeek as $index => $day){{ $day }} | @endforeach
|---|---|
| {{ $timeSlot }} | @foreach ($scheduleDaysOfWeek as $index => $day) @php $lessons = $studentScheduleGrid[$slotStart][$index] ?? []; $cellColor = $lessons ? ($scheduleColors[$lessons[0]['discipline_name']] ?? '#ffffff') : null; @endphp
@foreach ($lessons as $lesson)
{{ $lesson['group_name'] }}
@if (!empty($lesson['classroom_name']))
{{ $lesson['classroom_name'] }}
@endif
@endforeach
|
@endforeach