{{-- Shared "charges that fall outside the new window" checkbox table, used by every confirm screen that may delete charges (groups/confirm-recalc.blade.php, students/confirm-status-recalc.blade.php, groups/confirm-schedule-recalc.blade.php). Unpaid charges are pre-checked (selected for deletion); paid ones default unchecked so money already collected is never removed without an explicit click — the header checkbox is there for when the admin does want the whole list gone. Expects $toRemove (list of ['id','date','amount','tariff_id','paid', optionally 'group_name'/'student_name']) plus these optional flags: $showGroup (bool, default false) — adds a "Группа" column, for a screen spanning several groups at once $showStudent (bool, default false) — adds an "Ученик" column, for a screen spanning several students at once $tableTitle (string) — card header wording --}} @php($showGroup = $showGroup ?? false) @php($showStudent = $showStudent ?? false) @php($tableTitle = $tableTitle ?? 'Начисления вне периода')
{{ $tableTitle }}
Отмечены галочкой начисления, которые ещё не оплачены — они будут удалены. Оплаченные начисления по умолчанию не выбраны: снимите/поставьте галочку, чтобы изменить решение для конкретного начисления. Галочка в шапке таблицы выделяет/снимает все сразу.
@if ($showStudent) @endif @if ($showGroup) @endif @foreach ($toRemove as $row) @if ($showStudent) @endif @if ($showGroup) @endif @endforeach
УченикГруппаДата Сумма Статус
{{ $row['student_name'] ?? '—' }}{{ $row['group_name'] ?? '—' }}{{ date('d.m.Y', strtotime($row['date'])) }} {{ number_format($row['amount'], 0, ',', ' ') }} ₸ @if ($row['paid']) Оплачено @else Не оплачено @endif
@once @push('scripts') @endpush @endonce