<meta charset="utf8" />

<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-7 well">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user-secret"></i> Patient Name
                        </div>
                        <div style="float: left;margin: 3px;" class="form-inline">

                            <form action="{$hosturl}/controllers/patients.php?ac=search" method="post">
                                <input style="width: 295px;" type="text" name="search" id="wifenamesearchpt" class="form-control search" placeholder="Search By Name...">
                                </div>
                                <div class="tools">
                                    <a>  اسم المريضة</a>
                                    <a href="#" class="collapse" data-original-title="" title="">
                                    </a>
                                </div>

                        </div>
                        <div class="portlet-body form" style="display: block;">

                            <div class="form-body">

                                <div class="form-group">
                                    <label class="col-md-3 control-label" style="padding: 5px 7px; font-family: tahoma;">
                                        Husband Name
                                    </label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control input-inline input-medium search" id="husbandname" name="husbandname" placeholder="Enter text">
                                        <span class="help-inline" style="padding: 0; font-family: tahoma;">
                                            اسم الزوج
                                        </span>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label" style="padding: 5px 7px;    font-family: tahoma;">
                                        Address
                                    </label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control input-inline input-medium search" name="address" id="address" placeholder="Enter text">
                                        <span class="help-inline" style="padding: 0; font-family: tahoma;">
                                            العنوان
                                        </span>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label" style="padding: 5px 7px;    font-family: tahoma;">
                                        Phone
                                    </label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control input-inline input-medium search" name="phone" id="phone" placeholder="Enter text">
                                        <span class="help-inline" style="padding: 0; font-family: tahoma;">
                                            التليفون
                                        </span>
                                    </div>
                                </div>
                                <div class="clearfix"></div>

                                <div class="form-group">
                                    <label class="col-md-3 control-label" style="padding: 5px 7px;    font-family: tahoma;">
                                        Mobile
                                    </label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control input-inline input-medium search" name="mobile" id="mobile" placeholder="Enter text">
                                        <span class="help-inline" style="padding: 0; font-family: tahoma;">
                                            الموبايل
                                        </span>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label" style="padding: 5px 7px;    font-family: tahoma;">
                                        Age
                                    </label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control input-inline input-medium search" name="age" id="age" placeholder="Enter text">
                                        <span class="help-inline" style="padding: 0; font-family: tahoma;">
                                            السن
                                        </span>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label" style="padding: 5px 7px;    font-family: tahoma;">
                                        National ID
                                    </label>
                                    <div class="col-md-9">
                                        <input type="text" class="form-control input-inline input-medium search" name="nationalid" id="nationalid" placeholder="Enter text">
                                        <span class="help-inline" style="padding: 0; font-family: tahoma;">
                                            رقم البطاقة
                                        </span>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            </form>
                        </div>
                    </div>
                    <div class="success"> </div>
                </div>
                <div class="col-md-5">
                    <div class="col-md-5 txtc">
                        <a id="pulsate-regular" class="dashboard-stat dashboard-stat-light green-soft indexgo btn txtc" href="{$hosturl}/controllers/patients.php">
                            <span aria-hidden="true" class="icon-user-female indexicon"></span>
                            <br>
                            إضافة جديد
                        </a>
                    </div>
                    <div class="col-md-7">
                        <a class="btn btn-success wds100 addnewindex" href="{$hosturl}/controllers/visits.php">إضافة زيارة جديدة</a>
                        <div class="portlet box blue">
                            <div class="portlet-title">
                                <div class="caption txtc fright">
                                    زيارات  اليوم
                                </div>
                            </div>
                            <div class="portlet-body mp0">
                                <div class="scroller" style="height:600px" data-always-visible="1" data-rail-visible="0">
                                    <ul id="sortable" class="list-group ">
                                        {assign var=i value=1}
                                        {foreach $allvisit as $key=>$value}
                                        <li id="item_{$value->id}" class="ainli">
                                            <span style="position: absolute;left:5px;">{$value->id}</span>
                                            <a href="#">{$value->patientName}</a>

                                            <span style="position: absolute;right: 10px;">{$i}</span>
                                        </li>
                                        {capture assign=i}{$i+1}{/capture}
                                        {/foreach}
                                        <div class="clearfix"></div>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT -->
