<?php 	
	$pp_id_val = set_value('pp_id['.$i.']', $packing['product_packing_id'] ?? '');	
	$pp_name_val = set_value('pp_name['.$i.']',$packing['name'] ?? '');
?>
<tr id="packing_detail_row_<?=$i?>">
	<td>
		<?php if($router->methodName()=="edit"){ ?>
			<input type="hidden" name="pp_id[]" value="<?=$pp_id_val?>">
		<?php } ?>
		<input type="text" name="pp_name[]" id="pp_name_<?=$i?>" value="<?=$pp_name_val?>" class="form-control">		
		<?=$validation->showError('pp_name.'.$i)?>
	</td>
	<td style="vertical-align:middle;text-align:center;width:50px;">
		<a href="javascript:void(0);" onclick="removePackingRow('<?=$i?>');"><i class="far fa-trash-alt icon-lg text-danger"></i></a>
	</td>
</tr>