@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 }} меняется статус на «Не учится» с {{ date('d.m.Y', strtotime($statusDate)) }} — все активные группы будут закрыты этой датой. Ниже — какие начисления это затронет.

Будет доначислено
{{ number_format(collect($toAdd)->sum('amount'), 0, ',', ' ') }} ₸
{{ count($toAdd) }} урок(ов)
Вне нового периода
{{ number_format(collect($toRemove)->sum('amount'), 0, ',', ' ') }} ₸
{{ 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