<table>
    <caption>
        Laparoscopy    <button type="button" class="btn btn-xs blue addInvRow" id="invlaparoscopy" data-tableName="laparoscopy" 
                               data-hus="0" data-itr="{$laparoscopyCount}"> <i class="fa fa-plus"></i> </button>
    </caption>

    <tbody  id="laparoscopyDiv">
        {if $laparoscopyCount > 0 }   
        <tr>
            <th class="wds8" > Date  </th>  
            <th class="wds8" > Uterus </th>
            <th class="wds8" > R.adnexa  </th>  
            <th class="wds8"> L.adnexa  </th>  
            <th class="wds8" > Pelvis  </th> 
            <th class="wds8" > Notes  </th> 
            <th class="wds2">   </th> 
        </tr>
        {/if}

        {foreach $laparoscopys as $laparoscopy}
        <tr> 
            <td>
                <input type="text" class="form-control datepicker updateElement txtc" 
                       data-tableName="laparoscopy" data-colName="sdate" data-id="{$laparoscopy->id}" value="{$laparoscopy->sdate}"/>
            </td> 
            <td>
                <input type="text" class="form-control updateElement" 
                       data-tableName="laparoscopy" data-colName="uterus" data-id="{$laparoscopy->id}" value="{$laparoscopy->uterus}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="laparoscopy"
                       data-colName="radnexa" data-id="{$laparoscopy->id}" value="{$laparoscopy->radnexa}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="laparoscopy"
                       data-colName="ladnexa" data-id="{$laparoscopy->id}" value="{$laparoscopy->ladnexa}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="laparoscopy"
                       data-colName="pelvis" data-id="{$laparoscopy->id}" value="{$laparoscopy->pelvis}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="laparoscopy"
                       data-colName="notes" data-id="{$laparoscopy->id}" value="{$laparoscopy->notes}"/>
            </td>
            <td>
                <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$laparoscopy->id}" 
                   data-link="{$controllname}"  data-fn="del" data-tableName="laparoscopy" data-colName="del">
                    <i class="fa fa-times"></i> </a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
