{{-- 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 ?? 'Начисления вне периода')
| @if ($showStudent) | Ученик | @endif @if ($showGroup)Группа | @endifДата | Сумма | Статус |
|---|---|---|---|---|---|
| @if ($showStudent) | {{ $row['student_name'] ?? '—' }} | @endif @if ($showGroup){{ $row['group_name'] ?? '—' }} | @endif{{ date('d.m.Y', strtotime($row['date'])) }} | {{ number_format($row['amount'], 0, ',', ' ') }} ₸ | @if ($row['paid']) Оплачено @else Не оплачено @endif |