@extends('layouts.app') @section('title', __('Подтверждение смены статуса')) {{-- Interstitial screen for StudentProfileController::changeStatus() when marking a student "Не учится" would add and/or remove `charges` rows across one or more of their open group memberships. Nothing has been written yet — GroupMembershipRecalcService::preview() only simulated, and the status itself hasn't changed either. Cancelling just navigates away; Подтвердить resubmits the original fields plus confirmed=1 (and whichever remove_charge_ids[] were left checked) to the same route. Spans potentially several groups at once (unlike groups/confirm-recalc.blade.php, which is always a single group), so each row in $toAdd/$toRemove carries a 'group_name' and the removal table shows a "Группа" column. --}} @section('content')

{{ __('Подтверждение смены статуса') }}

{{ __('У') }} {{ $studentName }} {{ __('меняется статус на «:statusname» с :statusdate — все активные группы будут закрыты этой датой. Ниже — какие начисления это затронет.', ['statusname' => $statusName, 'statusdate' => date('d.m.Y', strtotime($statusDate))]) }}

{{ __('Будет доначислено') }}
{{ number_format(collect($toAdd)->sum('amount'), 0, ',', ' ') }} ₸
{{ __(':toadd урок(ов)', ['toadd' => count($toAdd)]) }}
{{ __('Вне нового периода') }}
{{ number_format(collect($toRemove)->sum('amount'), 0, ',', ' ') }} ₸
{{ __(':toremove начислени(й) — выберите ниже, что удалить', ['toremove' => count($toRemove)]) }}
@csrf @if ($reasonId) @endif @if (! empty($toAdd))
{{ __('Будет доначислено') }}
@foreach ($toAdd as $row) @endforeach
{{ __('Группа') }} {{ __('Дата') }} {{ __('Сумма') }}
{{ $row['group_name'] ?? '—' }} {{ date('d.m.Y', strtotime($row['date'])) }} {{ number_format($row['amount'], 0, ',', ' ') }} ₸
@endif @if (! empty($toRemove)) @include('partials._charges_removal_table', ['toRemove' => $toRemove, 'showGroup' => true]) @endif {{ __('Отмена') }}
@endsection