<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th class="bold col-md-1"> <div align="center">Date </div></th>
            <th class="bold"> <div align="center">Questions </div></th>
            <th class=" col-md-1">Print</th>
            <th class=" col-md-1">Delete</th>
        </tr>
    </thead>
    <tbody>
        {foreach $dates as $inv}
        <tr>
            <td> 
                {$inv.date}
            </td>
            <td>
                <table class="table table-striped table-hover table-bordered">
                    <thead>
                        <tr>
                            <th class="bold"> <div align="center">Question </div></th>
                            <th class="bold"> <div align="center">Answers </div></th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach $inv.questions as $ques}
                        <tr>
                            <td> 
                                {$ques.questionname}
                            </td>
                            <td>
                                <ul>
                                    {foreach $ques.answers as $ans}
                                    <li>
                                        {$ans.answername}
                                    </li>
                                    {/foreach}
                                </ul>
                            </td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
            </td>
            <td>
                <button type="button" class="btn green btn-block btn-xs printphShow"   data-date="{$inv.date}"  data-controller="gyna">  Print  </button>
            </td>
            <td>
                <a class="btn grey-cascade btn-xs delNew" data-date="{$inv.date}" style=" float: left;" href="#" data-link="gyna" data-fn="delPh" data-tableName="gynaph">
                    <i class="fa fa-close"></i>
                </a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>



<!--{literal}
<script type="text/javascript" >
    $('#presTable').dataTable({"pageLength": 50,"order": [[0, "asc"]]});
</script>
{/literal}-->
