@extends('layouts.app') @section('title', 'Перенос данных ученика') {{-- StudentRemovalController::transferForm() — the "two rows, one person" fix. First half picks the receiving student (search via /search_students.php, the same endpoint every other student picker on the site uses); once one is in the URL as target_id the second half shows StudentRecordsService::transferPlan() and the confirmation fields. Nothing is written until the POST, which re-checks the acknowledgement box and the typed surname server-side — the disabled submit button here is only a convenience. --}} @section('content')
Все записи ученика {{ $studentName }} — платежи, начисления, посещаемость, группы, результаты, игровой профиль — будут перенесены другому ученику. Используйте это, когда один и тот же человек заведён дважды.
{{-- Step 1: pick the receiving student --}}| Данные | Будет перенесено | Пропущено | Сумма |
|---|---|---|---|
|
{{ $row['label'] }}
@if ($row['note'])
{{ $row['note'] }}
@endif
|
{{ $row['count'] - $row['skipped'] }} | {{ $row['skipped'] > 0 ? $row['skipped'] : '—' }} | @if ($row['amount'] !== null) {{ number_format($row['amount'], 0, ',', ' ') }} ₸ @else — @endif |
| Итого | {{ collect($plan)->sum('count') - collect($plan)->sum('skipped') }} | {{ collect($plan)->sum('skipped') ?: '—' }} |