@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')
| {{ __('Время') }} | @foreach ($dates as $iso => $date)$date->isSameDay($today)])> {{ $dayNames[$iso] }} {{ $date->format('d.m') }} | @endforeach
|---|---|
| {{ $label }} | @foreach ($dates as $iso => $date) @php $lessons = $grid[$start][$iso] ?? []; $color = $lessons ? ($lessons[0]->discipline_color ?: '#e9ecef') : null; @endphp
@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