<input type="hidden" id="customInvest" value="1" />
<div class="form-group " style=" width: 100%; float: left;   border-bottom:1px solid black;  margin: 5px;padding-bottom: 5px;" id="invDiv{$invest->id}">


    <label class="col-md-11 control-label bold txtl" style="text-decoration:underline;margin-left: 4px;" >{$invest->name}
        <span style="float: left;">
            <input type="checkbox"  class="checkGroup" value="{$invest->id}" name="invCheck[]">
        </span>
    </label>



    {foreach  $invest->elements  as $data}

    <div class="form-group col-md-12 " style=" float: left; margin-top: 5px; ">

        <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;">{$data->show_name}  : </label>



        <div class="col-md-4">
            <select     select-colName="name"    select-tableName="custom_select"     
                        class="form-control   custom_select select2h"  
                        data-colName="element_select"   data-id="{$data->content->id}" 
                        data-tableName="{$invest->tableName}"
                        id="custom_select{$data->content->id}"  >
                <option value=""></option>
                {foreach $custom_select as $one}
                <option value="{$one->id}" {if $data->content->element_select ==    $one->id }selected{/if}>{$one->name}</option>
                {/foreach}
                <option value="-2" class="deleteoptincompo">حذف</option>
            </select>
        </div>

        <div class="col-md-2">
            <input type="text"  class="form-control     notPop    positivefloat" " value="" >
        </div>

        <div class="col-md-4">
            <select        class="form-control select2h "  >
                <option value=""></option>
                {foreach  $data->ranges as $rang}
                <option value="{$rang->id}" > {$rang->range_txt}  {$rang->range_low} - {$rang->range_high}   {$rang->invest_units}</option>
                {/foreach}
            </select>
        </div>
    </div>

    {/foreach}

    <div class="form-group col-md-12 " style=" float: left;margin-top :  5px; ">
        <label class="col-md-2 control-label bold txtl" style=" font-size: 16px;"> Comment </label>
        <div class="col-md-10">
            <textarea class="form-control  txtc   notPop   " rows="2"  placeholder="Enter more text" >

            </textarea>
        </div>
    </div>


</div>