@extends('layouts.app') @section('title', __('Подтверждение доначисления')) {{-- Interstitial screen for GroupProfileController::storeStudentMembership() and StudentProfileController::addToGroup() when the submitted joined_at is today or in the past: GroupJoinBackfillService::preview() has already simulated what would be charged for the missed lesson days, and nothing has been written yet — this is a plain confirm-before-charging step, not a redisplay of an error. Cancelling just navigates away; Подтвердить resubmits the same original fields plus confirmed=1 to $actionUrl, which is what actually creates the student_groups row and the charges (see GroupJoinBackfillService::commit()). Table styling mirrors the "Прогноз" tab (resources/views/charges/index.blade.php). --}} @section('content')

{{ __('Подтверждение доначисления') }}

{{ $studentName }} {{ __('добавляется в группу') }} {{ $groupName }} {{ __('с :joinedat — эта дата уже наступила, поэтому нужно доначислить пропущенные уроки за период с :joinedat2 по :value.', ['joinedat' => date('d.m.Y', strtotime($joinedAt)), 'joinedat2' => date('d.m.Y', strtotime($joinedAt)), 'value' => date('d.m.Y')]) }}

{{ __('Будет доначислено') }}
{{ number_format($preview['total'], 0, ',', ' ') }} ₸
{{ __(':days урок(ов)', ['days' => count($preview['days'])]) }}
@if ($preview['missing_tariff_days'] > 0)
{{ __('Нет тарифа на :missing_tariff_days урок(ов) в этом периоде — эти дни начислены не будут.', ['missing_tariff_days' => $preview['missing_tariff_days']]) }}
@endif
{{ __('По дням') }}
@if (empty($preview['days'])) @else @foreach ($preview['days'] as $row) @endforeach @endif
{{ __('Дата') }} {{ __('Сумма') }}
{{ __('Нет уроков в этом периоде') }}
{{ date('d.m.Y', strtotime($row['date'])) }} {{ number_format($row['amount'], 0, ',', ' ') }} ₸
@csrf {{ __('Отмена') }}
@endsection