@extends('layouts.app') @section('title', 'Подтверждение изменения расписания') {{-- Interstitial screen for GroupProfileController::updateSchedule() when the edited begin_date/end_date/weekdays would strand `charges` rows — days the group used to meet under the old schedule and no longer meets under the new one (ScheduleChangeRecalcService::orphanedCharges()). Nothing has been written yet: neither the schedule row nor the charges. Cancelling just navigates away; Подтвердить resubmits $hidden (every field of the original edit-schedule modal, plus confirmed=1) and whichever remove_charge_ids[] the admin left checked to /edit_schedule.php, which then applies the schedule update and the deletions in one transaction. Spans every student in the group at once (unlike groups/confirm-recalc.blade.php, which is always one student), so the removal table shows an "Ученик" column. Removal only — extending a schedule never back-charges here, so there is no "Будет доначислено" card. Styling mirrors students/confirm-status-recalc.blade.php. --}} @section('content')

Подтверждение изменения расписания

У группы {{ $groupName }} меняется расписание: {{ date('d.m.Y', strtotime($beginDate)) }} — {{ $endDate ? date('d.m.Y', strtotime($endDate)) : 'без даты окончания' }}, дни недели: {{ \App\Support\Weekdays::toString($weekdays) ?: '—' }}. Ниже — начисления за дни, которые в новое расписание больше не попадают.

Вне нового расписания
{{ number_format(collect($toRemove)->sum('amount'), 0, ',', ' ') }} ₸
{{ count($toRemove) }} начислени(й) у {{ collect($toRemove)->pluck('student_id')->unique()->count() }} ученик(ов) — выберите ниже, что удалить
Удаление начислений не восстанавливает остаток уроков по тарифам учеников — если среди удаляемых есть уроки, списанные с пакета, проверьте остатки вручную.
@csrf @foreach ($hidden as $name => $value) @endforeach @include('partials._charges_removal_table', [ 'toRemove' => $toRemove, 'showStudent' => true, 'tableTitle' => 'Начисления вне нового расписания', ]) Отмена
@endsection