
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Investigation Details 
                        </div>
                        <div class="actions">
                            <a class="btn yellow-gold  btn-xs" id="supplies" href="javascript:;" style=" float: left;"  >
                                Supplies
                            </a>

                            <a class="btn btn-default btn-xs" href="{$hosturl}/controllers/{$controllname}.php?ac=index" style=" float: right;"  >
                                <i class="fa fa-backward"></i> عرض الكل 
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>

                        <div class="form-body" style="margin: 1%;">
                            <div class="row">
                                <input type="hidden" id="controllName" value="{$controllname}"/>
                                <div class="col-md-2 wds9">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Date From</label>
                                        <input type="text" class="form-control datepicker "  style=" border: 1px solid #000000;"  
                                               readonly="readonly"  id="searchValue1"    value="{$today}"/>
                                    </div>
                                </div>
                                <div class="col-md-2 wds9">
                                    <div class="form-group">
                                        <label class="control-label ls2"> Date To</label>
                                        <input type="text" class="form-control datepicker "  style=" border: 1px solid #000000;"   
                                               readonly="readonly" id="searchValue2"     value="{$today}"/>
                                    </div>
                                </div>


                                <div class="col-md-3">
                                    <div class="form-group ">
                                        <label class="control-label ls2"> Test Category</label>
                                        <select  class="form-control   select2h"    id="invsCats" placeholder="اختر  "  >
                                            <option value=""> All </option>
                                            {foreach $cats as $row}
                                            <option value="{$row->id}" >{$row->name}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>

                                <div class="col-md-3">
                                    <div class="form-group " id="investsDiv">
                                        <label class="control-label ls2"> Tests</label>
                                        <select  class="form-control   select2h"    id="invests" placeholder="اختر  "  >
                                            <option value=""> All</option>
                                            {foreach $invests as $row}
                                            <option value="{$row->id}" >{$row->name}</option>
                                            {/foreach}
                                        </select>
                                    </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-2 wds14 " style="margin-top: 20px;">
                                    <a class="btn btn-primary btn-sm" id="searchInvData" >
                                        <i class="fa fa-search"></i>  </a>

                                    <a class="btn btn-default btn-sm" id="printInvData" >
                                        <i class="fa fa-print"></i>  </a>
                                </div>


                            </div>
                            <div class="row" id="resultTableDiv">

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

</div>



<div id="invStatusDiv"></div>
<div id="printDiv"></div>
<div id="suppliesDiv"></div>
<div id="suppliesByCatDiv"></div>






