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

                <select data-placeholder="اختر المورد" data-no="{$i}" class="select2 pull-left company_supplier"  tabindex="6" name="company_supplier{$i}"  id="company_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>
                                    