{{-- 減免確認マスタテーブル行(各利用者分類) --}} @php // reduction_confirm テーブルから取得したレコード $userCategoryId = $row->user_categoryid; $checkType = $row->reduction_confirm_type; // use numeric index passed from parent to avoid name collisions when duplicate user_categoryid exist $idx = $index ?? ($userCategoryId); $oldCheckType = old("reduction_confirm_type.$idx", $checkType); // 学生分類かどうかを判定 $isStudent = ($row->usertype_subject1 ?? '') === '学生'; $rowClass = $isStudent ? 'table-secondary' : ''; $isDisabled = $isStudent; @endphp {{ $userCategoryId }} {{ $row->usertype_subject1 ?? '-' }} {{ $row->usertype_subject2 ?? '-' }} {{ $row->usertype_subject3 ?? '-' }} {{-- hidden mapping to know which user_categoryid this input row targets --}}
{{-- 確認しない(0) --}}
{{-- 年1回(1) --}}
{{-- 毎更新時(2) --}}