<table class="table table-striped table-hover table-bordered" >
    <thead>
        <tr>
            <th> # </th>
            <th> Type</th>
            <th> Duration </th>
            <th>Stopped</th>
            <th> Notes</th>
        </tr>
    </thead>
    <tbody>

        {assign var=i value=1}
        {foreach $allcontract as $myallcontract}
        <tr>
            <td>{$i} </td>
            <td> {$myallcontract->contracttypename}</td>
            <td>{$myallcontract->contduration} </td>
            <td> {$myallcontract->contstopped}</td>
            <td> {$myallcontract->contranote} </td>

        </tr>

        {capture assign=i}{$i+1}{/capture}
        {/foreach}

    </tbody>

</table>