<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th> No </th>
            <th> Menarche</th>
            <th> Duration </th>
            <th>Length</th>
            <th> Regularity</th>
            <th> Amount</th>
            <th> Dysmenorrhoea</th>
            <th> LMP</th>
        </tr>
    </thead>
    <tbody>



        {assign var=i value=1}
        {foreach $allphmenstrual as $myallphmenstrual}
        <tr>
            <td>  {$i} </td>
            <td> {$myallphmenstrual->menarche} </td>
            <td> {$myallphmenstrual->duration}</td>
            <td> {$myallphmenstrual->length}</td>
            <td> {$myallphmenstrual->regualrityname} </td>
            <td>{$myallphmenstrual->amountname}</td>
            <td> {$myallphmenstrual->dysmenorrhoeaname} </td>
            <td> {$myallphmenstrual->phl_mp} </td>
        </tr>
        {capture assign=i}{$i+1}{/capture}
        {/foreach}
    </tbody>

</table>