<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th> # </th>
            <th> Type</th>
            <th> Notes </th>
        </tr>
    </thead>
    <tbody>
        {assign var=i value=1}
        {foreach $allphsexual as $data}
        <tr>
            <td> {$i} </td>
            <td>{$data->sexual_type}</td>
            <td> {$data->sexualnote}</td>
        </tr>
        {capture assign=i}{$i+1}{/capture}
        {/foreach}
</table>