@extends('layouts.app') @section('title', __('Моя панель')) @section('content') @php // Top of each scale — admin-editable on /admin/branding.php. $krMax = \App\Support\LessonScores::krMax(); $dzMax = \App\Support\LessonScores::dzMax(); @endphp
@if ($notFound)
{{ $notFound }}
@else @if (count($children) > 1) @endif

{{ __('Информация о вашем ученике') }}

@include('shared._student_warnings', ['warnings' => $warnings, 'warningsAudience' => 'parent']) @if ($studentInfo)
{{ $studentInfo->last_name.' '.$studentInfo->first_name }}

{{ __('Класс:') }} {{ $studentInfo->class_name ?? '—' }}

{{ __('Тип обучения:') }} {{ $studentInfo->learning_type_name ?? '—' }}

{{ __('Язык обучения:') }} {{ $studentInfo->language_name ?? '—' }}


{{ $summaryStats['avg_dz'] ?? '—' }}/{{ $dzMax }}
{{ __('Средний балл ДЗ') }}
{{ $summaryStats['avg_kr'] ?? '—' }}/{{ $krMax }}
{{ __('Средний балл КР') }}
@else
{{ __('Информация о студенте не найдена.') }}
@endif @include('shared._homework', ['homework' => $homework]) @if ($teacherComments !== null)
{{ __('Последние комментарии преподавателей') }}
@if ($teacherComments !== [])
    @foreach ($teacherComments as $tc)
  • {{ date('d.m.Y', strtotime($tc->lesson_date)) }}@if ($tc->discipline_name) · {{ $tc->discipline_name }}@endif @if ($tc->teacher_name) · {{ $tc->teacher_name }}@endif
    {{ $tc->text }}
  • @endforeach
@else

{{ __('Пока нет комментариев.') }}

@endif
@endif @include('shared._self_freeze',['freezeOptions' => $freezeOptions, 'freezeStudentId' => $selectedStudentId])
{{ __('Группы студента:') }}
@if ($groupInfo['success']) @foreach ($groupInfo['data'] as $group)
{{ $group->group_name }}

{{ __('Предмет:') }} {{ $group->discipline_name }}

@if ($group->planTotal > 0)

{{ __('Пройдено тем по КТП: :covered из :total', ['covered' => $group->planCovered, 'total' => $group->planTotal]) }}

@if (! empty($group->planSections))
@foreach ($group->planSections as $section)
{{ $section->title }}
{{ $section->covered }}/{{ $section->total }}
@endforeach
@endif @endif @if (! empty($group->lessons))
{{ __('Оценки за уроки:') }} @php $months = []; foreach ($group->lessons as $lesson) { $monthKey = date('Y-m', strtotime($lesson->lesson_date)); $months[$monthKey][] = $lesson; } $monthKeys = array_keys($months); @endphp
{{ $monthKeys[0] ?? '' }}
@foreach ($months as $monthKey => $lessons) @endforeach
@endif
@endforeach @else

{{ __('Студент не состоит ни в одной группе.') }}

@endif
{{ __('Срезы') }}
@if (! empty($weeklyResults))
@foreach ($weeklyResults as $res) @php $scoreText = $res->score !== null ? "{$res->score}/{$res->max_score}" : __('не сдавал'); $passed = $res->score !== null && $res->score >= ($res->max_score / 2); @endphp @endforeach
{{ __('Дата') }} {{ __('Учитель') }} {{ __('Результат') }}
{{ $res->lesson_date ? date('d.m.Y', strtotime($res->lesson_date)) : '—' }} {{ $res->teacher_name ?? '—' }} {{ $scoreText }}
@else

{{ __('Нет результатов тестов.') }}

@endif
@if ($ent !== null) @php $entNum = fn (float $v) => rtrim(rtrim(number_format($v, 1, '.', ''), '0'), '.'); @endphp
{{ __('Пробные ЕНТ') }}
@if ($ent['attempts'] !== [])
@foreach ($ent['attempts'] as $attempt) @endforeach
{{ __('Дата') }} {{ __('Предметы') }} {{ __('Итого') }}
{{ date('d.m.Y', strtotime($attempt['date'])) }} @foreach ($attempt['sections'] as $section)
{{ $section['name'] }}: {{ $entNum($section['score']) }}/{{ $entNum($section['max_score']) }}
@endforeach
{{ $entNum($attempt['total']) }}@if ($attempt['max_total'] > 0)/{{ $entNum($attempt['max_total']) }}@endif @if ($attempt['delta'] !== null)
{{ ($attempt['delta'] > 0 ? '+' : '').$entNum($attempt['delta']) }}
@endif
@else

{{ __('Результатов пробных ЕНТ пока нет.') }}

@endif
@endif @endif
@endsection