
<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 Category
                        </div>
                        <div class="actions">

                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=ranges" class="btn btn-default btn-sm">
                                Ranges  </a>

                            <a href="javascript:;" class="btn btn-default btn-sm" id="invCat_add">
                                <i class="fa fa-plus"></i> Add New  </a>


                        </div>

                    </div>
                    <div class="portlet-body" >
                        <div class="table-toolbar">

                        </div>
                        <table class="table table-striped table-hover table-bordered" id="invCat">
                            <thead>
                                <tr>
                                    <th>
                                        Investigation Category
                                    </th>
                                    <th class="wds10">
                                        Pathology
                                    </th>
                                    <th class="wds10">
                                        Investigations
                                    </th>
                                    <th class="wds8">
                                        Edit
                                    </th>
                                    <th class="wds8">
                                        Delete
                                    </th>
                                </tr>
                            </thead>
                            <tbody>

                                {foreach $allInv as $inv}
                                <tr>

                                    <td>
                                        <input type="text" class="form-control updateElement invCatName" id="cat{$inv->id}" 
                                               data-id="{$inv->id}" disabled=""  data-colName="name" data-tableName="investcats"  
                                               value="{$inv->name}"/>
                                    </td>
                                    <td>
                                        <div class="md-checkbox pathologyCheck" id="pathologyCheck{$inv->id}">
                                            <input type="checkbox" id="pathology{$inv->id}" data-id="{$inv->id}" 
                                                   data-tableName="investcats"     value="1"    data-colName="pathology"     
                                                   class="md-check updateElementCheck"  {if $inv->pathology == 1}checked{/if}>
                                            <label for="pathology{$inv->id}">
                                                <span></span>
                                                <span class="check"></span>
                                                <span class="box"></span>
                                            </label>
                                        </div>
                                    </td>
                                    <td>
                                        <a class="btn green btn-xs showInv" data-id="{$inv->id}"  href="#" >
                                            <i class="fa fa-pencil"></i> Show
                                        </a>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs editCat" data-id="{$inv->id}"  href="#" >
                                            <i class="fa fa-pencil"></i>
                                        </a>
                                    </td>
                                    <td>
                                        {if $inv->displayorder !=  0 }
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$inv->id}"  href="#" data-link="addinvestigation" data-fn="del" data-tableName="investcats">
                                            <i class="fa fa-close"></i>
                                        </a>{/if}
                                    </td>
                                </tr> 

                                {/foreach}
                            </tbody>
                        </table>



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

</div>

<input type="hidden" id="controllName" value="addinvestigation"/>





<!----#########################################################################  model ##############################################################################################################--->
<div class="all">
    <!--------------------------------------------------------------------------- simple form Ultrasound Model-------------------------------------------------------------------------------------->
    <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="investsModel" style="min-width:1000px;">
        <div class="modal-dialog  modal-lg wds95" style="max-width: 90%;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title">  </h4>
                </div>
                <div class="modal-body">
                    <div class="portlet-body form">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box">

                                    <div class="portlet-title">
                                        <div class="caption">
                                            <i class="fa fa-cogs"></i> Investigations
                                        </div>
                                        <div class="actions">
                                            <a href="javascript:;" class="btn btn-default btn-sm" id="invest_add">
                                                <i class="fa fa-plus"></i> Add </a>

                                        </div>
                                    </div>
                                    <div class="portlet-body">

                                        <table class="table table-striped table-hover table-bordered" id="invests" >
                                            <thead>
                                                <tr>
                                                    <th>
                                                        Investigations
                                                    </th>
                                                    <th class="wds13">
                                                        Sample Type
                                                    </th>
                                                    <th class="wds8">
                                                        Type
                                                    </th>
                                                    <th class="wds10">
                                                        Special Inv Type
                                                    </th>
                                                    <th class="wds7">
                                                        Price
                                                    </th>

                                                    <th class="wds8">
                                                        Lab Price
                                                    </th>

                                                    <th class="wds3">
                                                        PDF
                                                    </th>

                                                    <th class="wds3">
                                                        Priority
                                                    </th>

                                                    <th class="wds3">
                                                        Favorite
                                                    </th>
                                                    <th class="wds15">
                                                    </th>

                                                </tr>

                                            </thead>
                                            <tbody id="showCatInv">

                                            </tbody>
                                        </table>
                                        <input type="hidden" id="catId" value=""/>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">

                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

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


    <div class="modal fade" id="editModal" tabindex="-1" role="basic" aria-hidden="true">
    </div>

    <!-------------##############################-------------------- End of Models -----------------------#########################################-------------->
</div>


<div id="invPreview"></div>
<div id="invCustomDiv"></div>
<div id="invPrint"></div>