
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->




                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-cogs"></i>GT Image
                        </div>
                        <div class="actions">
                            <a href="{$hosturl}/controllers/gtimage.php?ac=index&patientid={$patientId}" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> Add </a>

                        </div>
                    </div>

                    <input type="hidden" id="patientId" value="{$patientId}">
                    <input type="hidden" id="controllName" value="gtimage"/>
                    <input type="hidden" id="dragPage" value="1"/>

                    <div class="portlet-body">
                        <div>
                            <table class="table table-striped table-bordered table-hover" id="sample_3">
                                <thead>
                                    <tr>

                                        <th style="width: 2%;">No</th>
                                        <th style="width:9%;">Date</th>
                                        <th  style="width: 4%;">Show</th>
                                        <th  style="width: 4%;">Delete</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    {if !empty($allGtImage)}
                                    {assign var=m value=1}
                                    {foreach $allGtImage as $single}

                                    <tr>

                                        <td>{$m}</td>
                                        <td>{$single->gdate}</td>
                                        <td>
                                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=showdata&patientid={$patientId}&id={$single->id}" class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Show</a>
                                        </td>

                                        <td>
                                            <a class="btn grey-cascade btn-xs removeMsg" data-id="{$single->id}" data-link="{$controllname}"><i class="fa fa-times"></i>Delete </a>
                                        </td>


                                    </tr>
                                    {capture assign = m}{$m+1}{/capture}
                                    {/foreach}

                                    {else}
                                    No Data
                                    {/if}
                                </tbody>

                            </table>
                        </div>
                        <!-- <input type="hidden" name="id" value="{$operativedetails.id}">-->
                    </div>
                </div>
            </div>
        </div>




