{{-- Ports app/Views/student/show.php's renderGroupCard() (legacy, lines 76-282) — see the Phase 8 plan. Stats/tariff/month-grouping are precomputed in StudentProfileController@loadGroupInfo/computeGroupStats/resolveGroupTariff (Blade partials shouldn't run SQL or business logic), not recomputed here. --}} @php $tariff = $group->tariff; $stats = $group->stats; $uniqueId = $group->uniqueId; @endphp
Предмет: {{ $group->discipline_name }}
Учитель: {{ $group->teacher_name ?? '—' }}
С: {{ date('d.m.Y', strtotime($group->joined_at)) }} @if ($group->end_date) по {{ date('d.m.Y', strtotime($group->end_date)) }} @endif
@if (!empty($group->schedule))Расписание: @foreach ($group->schedule as $schedule) {{ \App\Support\Weekdays::toString((int) $schedule->weekdays) }} {{ date('H:i', strtotime($schedule->begin_time)) }}–{{ date('H:i', strtotime($schedule->end_time)) }} @if (!empty($schedule->classroom_name)) ({{ $schedule->classroom_name }}) @endif @endforeach
@endif @if ($tariff)