@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 }} {{ __('меняется расписание: :begindate — :enddate, дни недели: :weekdays. Ниже — начисления за дни, которые в новое расписание больше не попадают.', ['begindate' => date('d.m.Y', strtotime($beginDate)), 'enddate' => $endDate ? date('d.m.Y', strtotime($endDate)) : __('без даты окончания'), 'weekdays' => \App\Support\Weekdays::toString($weekdays) ?: '—']) }}

{{ __('Вне нового расписания') }}
{{ number_format(collect($toRemove)->sum('amount'), 0, ',', ' ') }} ₸
{{ __(':charges начислени(й) у :students ученик(ов) — выберите ниже, что удалить', ['charges' => count($toRemove), 'students' => 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