<div class="tab-pane  " id="tabsc_3">
    <table>
        <thead>
            <tr>
                <th class="wds5">  NO</th>
                <th > stage</th>
                <th >   grade  </th>
                <th >   Media  </th>
                <th >   Oil  </th>
                <th >   Incubator  </th>
                <th >  Embryologist  </th>
            </tr>

        </thead>
        <tbody id="scoringTable">
            {assign var=myItra value=1}
            {foreach $scoring as $one_scoring}
            <tr>
                <td> {$myItra} </td>
                <td>
                    <select id="s_3_{$myItra}" class="form-control selectStage update_itemS"  data-tableName="embryoscoring" 
                            data-rowid="{$one_scoring->id}" name="stage3" select-tableName="stage" data-colName="stage3">
                        <option value="">choose</option>
                        {foreach  $stages as $one}
                        <option value="{$one->id}"{if $one_scoring->stage3 eq $one->id}selected{/if}>{$one->stage}</option>
                        {/foreach}

                        <option value="-2" class="deleteoptincompo">Delete</option>
                    </select>
                </td>
                <td>
                    <select  id="g_3_{$myItra}" class="form-control selectGrade update_itemS"  data-tableName="embryoscoring" 
                             data-rowid="{$one_scoring->id}" name="grade3" select-tableName="grade" data-colName="grade3">
                        <option value="">choose</option>
                        {foreach  $grades as $one}
                        <option value="{$one->id}"{if $one_scoring->grade3 eq $one->id}selected{/if}>{$one->grade}</option>
                        {/foreach}

                        <option value="-2" class="deleteoptincompo">Delete</option>
                    </select>
                </td>
                <td>
                    <select  id="mediaSC3_{$one_scoring->id}"  class="form-control  update_itemS growthmedia select2Lab"   multiple
                             data-colName="media3" data-tableName="embryoscoring" data-rowid="{$one_scoring->id}">
                        <option value="">choose</option>
                        {foreach  $scoring_media as $one}
                        <option value="{$one->id}"{if $one->id|in_array:$one_scoring->media3}selected{/if}>{$one->name}</option>
                        {/foreach}
                    </select>    
                </td>

                <td>
                    <select   id="oilSC3_{$one_scoring->id}"   class="form-control  update_itemS growthoil select2Lab"   multiple
                              data-colName="oil3" data-tableName="embryoscoring" data-rowid="{$one_scoring->id}">
                        <option value="">choose</option>
                        {foreach  $scoring_oil as $one}
                        <option value="{$one->id}"{if $one->id|in_array:$one_scoring->oil3}selected{/if}>{$one->name}</option>
                        {/foreach}
                    </select>     
                </td>

                <td>
                    <select    id="incubatorSC3_{$one_scoring->id}"  class="form-control  update_itemS growthincubator select2Lab"   multiple 
                               data-colName="incubator3"   data-tableName="embryoscoring" data-rowid="{$one_scoring->id}">
                        <option value="">choose</option>
                        {foreach  $scoring_incubator as $one}
                        <option value="{$one->id}"{if $one->id|in_array:$one_scoring->incubator3}selected{/if}>{$one->name}</option>
                        {/foreach}
                    </select>     
                </td>

                <td>
                    <select    id="embrologistSC3_{$one_scoring->id}"  class="form-control  update_itemS  select2Lab"   multiple 
                               data-colName="embrologist3"   data-tableName="embryoscoring" data-rowid="{$one_scoring->id}">
                        <option value="">choose</option>
                        {foreach  $scoring_embrologist as $one}
                        <option value="{$one.id}"{if $one.id|in_array:$one_scoring->embrologist3}selected{/if}>{$one.name}</option>
                        {/foreach}
                    </select>     
                </td>
            </tr>
            {capture assign=myItra}{$myItra+1}{/capture}
            {/foreach}

        </tbody>
    </table>
</div>