<div class="page-content-wrapper">
    <div class="page-content">
        <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-users"></i>ٌRFC Report 
                        </div>
                    </div>
                    <div class="portlet-body all">

                        <div class="row">
                            <input type="hidden" id="externalLabReport" value="1"/>
                            <div class="row clinick posre">

                                <div class="col-md-2">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker txtc" readonly id="findate" value="{$today}"/>
                                        <label for="form_control_1">Date From </label>
                                    </div>
                                </div>

                                <div class="col-md-2">
                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                        <input type="text" class="form-control datepicker txtc" readonly id="tofindate" value="{$today}"/>
                                        <label for="form_control_1">Date To </label>
                                    </div>
                                </div>

                                {if $programesetting->branches == 1  } 
                                <div class="col-md-2">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Branch</label>

                                        <select class="form-control select2h" id="branch_id">
                                            {if $showStart == 1  } <option value="-1">choose</option>  {/if}
                                            {if $showAll == 1  } <option value="">All</option> {/if}
                                            {foreach $branches as $data}
                                            <option value="{$data->id}" {if $selectedBranch eq $data->id  }selected{/if}>{$data->name}</option>
                                            {/foreach}
                                        </select>

                                    </div>
                                </div>
                                {else}
                                <input type="hidden"  id="branch_id"  value="1"> 
                                {/if}

                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Doctor</label>
                                        <select class="form-control select2me" id="doctorId"  
                                                data-placeholder="Select..." >
                                            <option value="" > All</option>
                                            {foreach $doctors as $doctor}
                                            <option value="{$doctor.user_id}">{$doctor.name}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>

                                <a class="btn btn-primary btn-sm" id="rfcReportSearchBtn"   data-print="0"
                                   style="    margin-top: 23px;">  <i class="fa fa-search"></i>  </a>

                                <a class="btn btn-primary btn-sm" id="firstVisitBtn"   data-print="0"
                                   style="    margin-top: 23px;">  <i class="fa fa-search"></i> First Visits  </a>
                            </div>

                            <div class="clearfix"></div>

                            <div class="portlet box white">
                                <div class="portlet-title">
                                    <div class="actions">

                                    </div>
                                </div>

                                <div class="portlet-body form rtl" id="financialDiv" 
                                     style="max-width: 1650px;max-height: 750px;overflow: auto;white-space: nowrap;">   </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="talks-loading" style="z-index: 3000;position: absolute;top: 7%;right: 2%;left: 6%;display:none; height: 65%; background-color: rgba(0, 0, 0,0.27); padding-top: 10%;" align="center">
    <img src="{$hosturl}/../upload/loading.gif">
</div>



<div  id="printItDiv" ></div>
<div id="patVisitsDiv"></div>
<div id="firstVisitsDiv"></div>



