<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>Doctor Financial Report
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="centerReport" value="1"/>
                        <input type="hidden" id="tdate" value="{$today}">
                        <input type="hidden" id="controllName" value="financialreport"/>
                        <!--Begin Semen-->

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

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


                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="control-label ls2">Department </label>

                                        <select class="form-control searchFin finSearch" id="fordepartment">
                                            <option value="">choose</option>
                                            {foreach $py_all_departs as $row}
                                            <option value="{$row->id}">{$row->name}</option>
                                            {/foreach}
                                        </select>

                                    </div>
                                </div> 


                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label class="control-label ls2">Doctors </label>

                                        <select class="form-control select2h finSearch" id="repDoctors">
                                            <option value="">choose</option>
                                            {foreach $doctors as $doc}
                                            <option value="{$doc.user_id}">{$doc.name}</option>
                                            {/foreach}
                                        </select>

                                    </div>
                                </div> 

                            </div>

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

                            <div class="portlet box white">
                                <div class="portlet-title">
                                    <div class="actions">
                                        <a class="btn btn-default btn-sm" id="printfi" >
                                            <i class="fa fa-print"></i> Print </a>

                                    </div>
                                </div>

                                <div class="portlet-body form" id="financialDiv">
                                    <table class="table table-hover portlet light bg-inverse" id="repTable" style="width: 100%;">
                                        <tr>
                                            <th>   Doctor </th>
                                            <th>   Department </th>
                                            <th>   No of Hours</th>
                                            <th>   Hour Price</th>
                                            <th>  Total Price   </th>
                                        </tr>


                                        <tr>
                                            <th  class="wds10">   Total</th>
                                            <th>  </th>
                                            <th>   {$totalHours}</th>
                                            <th>   {$hoursPrice}</th>
                                            <th>   {$net}</th>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>

                    </div>

                    <!--End Semen-->


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

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

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


