<table class="table table-hover portlet light bg-inverse" id="repTable" style="width: 100%;">
    <thead>
        <tr>
            <th style="width: 10px !important;">#</th>
            <th>    Date</th>
            <th>Old   W. RFC</th>
            <th> Old   H. RFC</th>
            <th>New   W. RFC</th>
            <th> New   H. RFC</th>
            <th> User </th>
            {if $showBranchCol  == 1}   <th> Branch </th>{/if} 
        </tr>
    </thead>
    <tbody>
        {assign var="i" value="1"}
        {foreach $res as $data}
        <tr>
            <td>{$i}</td>
            <td>   {$data.date_edit} </td>
            <td> {$data.wrfc} </td>
            <td>  {$data.rfc}</td>
            <td> {$data.new_wrfc} </td>
            <td>  {$data.new_rfc}</td>
            <td>  {$data.userid_edit}</td>
            {if $showBranchCol  == 1}    <td>  {$data.branchName}</td>{/if} 
        </tr>
        {assign var="i" value={$i+1}}
        {/foreach}
    </tbody>
</table>
