{{-- 減免確認マスタテーブル行(各利用者分類) --}} @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