<meta charset="utf8"/>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row rtl artbl"  >
            <div class="col-md-12 col-sm-12">
                <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-primary btn-sm">
                                <i class="fa fa-plus"></i> إضافة جديد</a>
                        </div>

                        <div class="actions">
                           <a href="{$hosturl}/controllers/patients.php?ac=show" target="_blank" class="btn btn-success btn-sm">  جميع المرضى </a>
                        </div>

                       <div class="actions"></div>
                    </div>
                    <div class="portlet-body" >
                       <table class="table table-striped table-bordered table-hover rtl">
                          <thead>
                             <tr>
                                <th>رقم الحالة</th>
                                <th>اسم الحالة</th>
                                {if $programesetting->system_lang  == 1}    <th>اسم الزوج</th>  {/if}
                                <th>المستخدم </th>
                                <th>تعديل </th>
                             </tr>
                          </thead>
                          <tbody>
                             {foreach $patients as $patient }
                             <tr>
                                <td>{$patient.statusno}</td>
                                <td>{$patient.wifename}</td>
                                {if $programesetting->system_lang  == 1}  <td>{$patient.husdandname}</td> {/if}
                                <td>{$patient.userName}</td>
                                <td>
                                   <a href="{$hosturl}/controllers/{$controllname}.php?ac=index_unfinished&id={$patient.id}" class="btn btn-primary btn-sm">
                                      <i class="fa fa-edit"></i>  </a>
                                </td>
                             </tr>
                             {/foreach}
                          </tbody>
                       </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div id="forPrint"></div>
