<?php 	
	$pb_id_val = set_value('pb_id['.$i.']', $benefit['application_benefit_id'] ?? '');	
	$pb_name_val = set_value('pb_name['.$i.']',$benefit['name'] ?? '');
?>
<tr id="benefit_detail_row_<?=$i?>">
	<td>
		<?php if($router->methodName()=="edit"){ ?>
			<input type="hidden" name="pb_id[]" value="<?=$pb_id_val?>">
		<?php } ?>
		<input type="text" name="pb_name[]" id="pb_name_<?=$i?>" value="<?=$pb_name_val?>" class="form-control">		
		<?=$validation->showError('pb_name.'.$i)?>
	</td>
	<td style="vertical-align:middle;text-align:center;width:50px;">
		<a href="javascript:void(0);" onclick="removeBenefitRow('<?=$i?>');"><i class="far fa-trash-alt icon-lg text-danger"></i></a>
	</td>
</tr>