@php $editing = $type !== null; $carry = old('carry_over', $editing ? $type->carry_over : false); $paid = old('paid', $editing ? $type->paid : true); $approval = old('requires_approval', $editing ? $type->requires_approval : true); $status = old('status', $editing ? $type->status : 'Active'); $accrual = old('accrual', $editing ? $type->accrual : 'annual'); $gender = old('gender', $editing ? $type->gender : ''); @endphp