
{assign var=m value=1}
{foreach $pres as $single}
<tr class="odd gradeX ">
    <td>{$m}</td>
    <td>{$single.pre_name}</td>
    <td>
        <a class="btn green-jungle btn-xs addPatPrePres " data-for="0"  data-id="{$single.id}" 
           data-controller="{$preController}"> Wife </a>

        <a class="btn purple-soft btn-xs addPatPrePres "  data-for="1"  data-id="{$single.id}" 
           data-controller="{$preController}">  Husband </a>
    </td>
    <td>
        <a  class="btn green btn-block btn-xs editPrePres" data-id="{$single.id}" ><i class="fa fa-pencil"></i> </a>
    </td>

    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$single.id}" data-link="gyna"  
           data-fn="delPre" data-tableName="prepared_prescriptions"><i class="fa fa-times"></i> </a>
    </td>


</tr>
{capture assign=m}{$m+1}{/capture}
{/foreach}


