<input type="hidden" id="addsupplierId{$i}" value="{$choosensupplier->supplierid}" />
<input type="hidden" id="addsuppliernam{$i}" value="{$choosensupplier->suppliername}" />

                <select data-placeholder="اختر المورد" data-no="{$i}" class="select2 pull-left client_supplier"  tabindex="5" name="client_supplier{$i}"  id="client_supplier{$i}" required>
                                        <option value=""></option>
                                        <option value="-2" class="newoption">إضافة مورد جديد</option>
                                        {foreach $supplier as $data}
                                        	<option value="{$data->supplierid}">{$data->suppliername}</option>
                                        {/foreach}
                                      
                                    </select>
                                    
                                    
                 