@extends('layouts.app') @section('title', 'Информация о группе') {{-- Ports app/Views/group/show.php (legacy, 1450 lines) + the render() payload from App\Controllers\GroupController::show() (app/Controllers/GroupController.php:488-559) — see the Phase 16 plan. Every write form on this page is Laravel-native @csrf as of Phase 21 (edit/delete/deactivate-group: Phase 17; group-tariff CRUD: Phase 18; schedule CRUD: Phase 19; student add/remove: Phase 21, shared with adviser/schedule/index.blade.php since that page migrated in Phase 20). No more legacy CSRF pass-through forms remain on this page. The edit-group modal checks Laravel's own $errors/old() first (set by Illuminate\Http\Request::validate()'s automatic redirect-back), falling back to the legacy $oldInput/$oldErrors (Phase 16) only when Laravel's own bag is empty — the two can never both be populated for the same request/redirect cycle, since only one side ever writes on any given submit. See the Phase 17 plan. Role gating mirrors the legacy view's two in_array($role, ['admin']) blocks exactly (tariffs, financials) — the page itself has no page-level role restriction (only SessionAuth::check()), matching the same flagged-not-fixed ambiguity as student_admin_info.php. The #StudentModal edit-student-in-group form is ported byte-for-byte broken, matching production: it posts to /update_student_to_group.php (no matching route at all) and its data-weekdays attribute is always empty (Group::getStudents() never selects sg.weekdays) — not this phase's concern to fix. --}} @push('styles') @endpush @php $editGroupHasError = $errors->any() || isset($oldErrors['group_name']) || isset($oldErrors['teacher_id']) || isset($oldErrors['group_type']) || isset($oldErrors['subject_id']) || isset($oldErrors['language_id']) || isset($oldErrors['learning_type_id']) || isset($oldErrors['class_id']); $editGroupError = fn (string $field) => $errors->first($field) ?: ($oldErrors[$field] ?? null); $editGroupOld = fn (string $field, string $default = '') => $errors->any() ? old($field, $default) : ($oldInput[$field] ?? $default); @endphp @section('content')
В этой группе нет студентов в локальной базе данных.
@endifРасписание в локальной базе не найдено.
@endifТарифы для группы не назначены.
@endif