<table class="table table-hover portlet light bg-inverse rtl" id="repTable" style="width: 100%;">
    <thead>
        <tr>
            <th  style="width: 10px !important;">#</th>
            <th >  الخدمة  </th>
            <th >  عدد المرضى   </th>
            <th >      </th>
        </tr>
    </thead>
    <tbody>
        {assign var="i" value="1"}
        {foreach $knownfroms as $data}
        <tr>
            <td>{$i}</td>
            <td> {$data.name}</td>
            <td> {$data.patCount}</td>
            <td> 
                {if   $data.patCount > 0 }
                <a class="btn blue btn-xs knownFromDetails"  data-branchId="{$branchIdSelect}"  
                   data-doctorId="{$doctorIdSelect}"  data-id="{$data.knownFromId}"  href="javascript:;" >
                    <i class="fa fa-eye"></i>
                </a> 
                {/if}
            </td>
        </tr>
        {assign var="i" value={$i+1}}
        {/foreach}
    </tbody>
</table>

