
<table cellspacing="10" width="100%" id="dtAddTbl">
    <thead>
        <tr>
            <th>Name</th>
            <th>Delete</th>
        </tr>
    </thead>
    {assign var=i value=1}
    {foreach $hospitalnames as $hospital}
    <tr>
        <td style="width: 100%">
            {$hospital->name}
        </td>
        <td>
            <a class="fa fa-times btn red fleft delHospital"  data-id="{$hospital->id}"></a>
            </a>
        </td>
    </tr>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}


</table>
