<meta charset="utf8"/>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <!--        <h3 class="page-title">
                    {$shcontrollname}
                </h3>
                <div class="page-bar">
                    <ul class="page-breadcrumb">
                        {$breadcrumbs}
                    </ul>
                </div>-->
        <!-- END PAGE HEADER-->
        <!-- BEGIN PAGE CONTENT-->
        <div class="row rtl artbl"  >
            <div class="col-md-12 col-sm-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box grey-cascade">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-cogs"></i>جميع المرضى
                        </div>

                        <div class="actions">
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=index" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> إضافة جديد</a>
                        </div>
                    </div>
                    <div class="portlet-body" >
                        <table class="table table-striped table-bordered table-hover datafordelete" id="sample_3">
                            <thead>
                                <tr>

                                    <th>المسلسل </th>
                                    <th>رقم الحالة</th>
                                    {if $programesetting->programview  == 1} 
                                    <th>اسم الزوجة</th>
                                    <th>اسم الزوج</th>
                                    {else}
                                    <th>اسم المريض</th>
                                    {/if}
                                    <th>العنوان </th>
                                    <th>التليفون </th>
                                    <th>الموبايل </th>
                                    <th>تعديل </th>
                                    <th>حذف</th>
                                </tr>
                            </thead>
                            <tbody id="delpatientnow">
                                {foreach $allPatientData as $row}
                                <tr class="odd gradeX">
                                    <td>
                                        {$row->id}
                                    </td>
                                    <td>
                                        {$row->statusno}
                                    </td>
                                    <td>
                                        {$row->wifename}
                                    </td>
                                    {if $programesetting->programview  == 1} 
                                    <td>
                                        {$row->husdandname}
                                    </td>
                                    {/if}
                                    <td>
                                        {$row->address}
                                    </td>
                                    <td>
                                        {$row->phone}
                                    </td>
                                    <td>
                                        {$row->mobile}
                                    </td>
                                    <td>
                                        <a class="label  label-primary" href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$row->id}">تعديل</a>
                                    </td>
                                    <td >
                                        <a class="deletemsgEX label  label-danger"   data-id="{$row->id}" data-link="patients" data-fn="del">حذف</a>
                                    </td>
                                </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- END EXAMPLE TABLE PORTLET-->
            </div>
        </div>
    </div>
    <!-- END PAGE CONTENT-->
</div>

<!-- END CONTENT -->