
<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>بطاقات  متابعة 
                        </div>

                        
                        <div class="actions">
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=addit&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="{$controllname}"/>

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

                                        <th style="width: 2%;">No</th>
                                        <th style="width: 11%;">Exit date</th>
                                        <th>Treatment</th>
                                        <th style="width: 2%;">Details</th>
                                        <th style="width: 2%;">Delete</th>
                                        {if $programSetting->displaydoctorname == 1}<th  style="width: 9%;">Doctor Name</th>{/if}

                                    </tr>
                                </thead>
                                <tbody id="endReportsBody">
                                    
                                    {assign var=m value=1}
                                    {foreach $followupcards as $single}

                                    <tr>
                                        <td>{$m}</td>
                                        <td>{$single->exitdate}</td>
                                        <td>{$single->treatment}</td>
                                        <td>
                                            <button type="button" class="btn btn-xs green fright cardDetails" data-id="{$single->id}"  >Details</button>
                                        </td>
                                        <td>
                                            <a class="btn grey-cascade btn-xs delCard" data-id="{$single->id}" style=" float: left;" href="#" >
                                                <i class="fa fa-close"></i>
                                            </a>
                                        </td>
                                        {if $programSetting->displaydoctorname == 1}<td>{$single->doctorName}</td>{/if}
                                    </tr>
                                    {capture assign = m}{$m+1}{/capture}
                                    {/foreach}

                                </tbody>

                            </table>
                            
                            
                        </div>
                    </div>
                </div>
            </div>
        </div>




