@extends('layouts.gamification') @section('title', __('Моё расписание')) @section('gami-active', 'schedule') {{-- Week grid in the style of schedule/teacher.blade.php (time slots × days, discipline-coloured cells, today's column highlighted), built per date by StudentScheduleController::index() — so holidays and the student's frozen days are simply empty cells. --}} @push('styles') @endpush @section('gami-content')
{{ __('Моё расписание') }}
{{ __('Эта неделя') }} {{ __('Следующая неделя') }}
@php $dayNames = [1 => __('Понедельник'), __('Вторник'), __('Среда'), __('Четверг'), __('Пятница'), __('Суббота'), __('Воскресенье')]; $today = \Illuminate\Support\Carbon::today(); @endphp @include('shared._self_freeze', ['freezeOptions' => $freezeOptions, 'freezeStudentId' => null]) @if (empty($grid))
{{ __('На этой неделе занятий нет.') }}
@endif
@foreach ($dates as $iso => $date) @endforeach @foreach ($slots as $start => $label) @foreach ($dates as $iso => $date) @php $lessons = $grid[$start][$iso] ?? []; $color = $lessons ? ($lessons[0]->discipline_color ?: '#e9ecef') : null; @endphp @endforeach @endforeach
{{ __('Время') }} $date->isSameDay($today)])> {{ $dayNames[$iso] }} {{ $date->format('d.m') }}
{{ $label }} @foreach ($lessons as $lesson)
{{ $lesson->discipline_name ?? $lesson->group_name }}
{{ $lesson->group_name }} @if ($lesson->classroom_name)
@if ($lesson->classroom_link && preg_match('#^https?://#', $lesson->classroom_link)) {{ $lesson->classroom_name }} @else {{ __('каб.') }} {{ $lesson->classroom_name }} @endif @endif
@endforeach
@endsection