@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 }} с {{ date('d.m.Y', strtotime($joinedAt)) }} — эта дата уже наступила, поэтому нужно доначислить пропущенные уроки за период с {{ date('d.m.Y', strtotime($joinedAt)) }} по {{ date('d.m.Y') }}.

Будет доначислено
{{ number_format($preview['total'], 0, ',', ' ') }} ₸
{{ count($preview['days']) }} урок(ов)
@if ($preview['exhausted_warning'])
{{ $preview['exhausted_warning'] }}
@endif @if ($preview['missing_tariff_days'] > 0)
Нет тарифа на {{ $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