<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   {$fieldName}</th>
            <th> New {$fieldName}</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.oldValue} </td>
            <td>  {$data.newValue}</td>
            <td>  {$data.userid_edit}</td>
            {if $showBranchCol  == 1}   <td>  {$data.branchName}</td>{/if} 
        </tr>
        {assign var="i" value={$i+1}}
        {/foreach}
    </tbody>
</table>
