<style>
    .table{
        margin-top: 5px;
        display: inline-table;
    }

    td, th {
        padding:5px !important;
    }
</style>
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row clinick">
            <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-user"></i>Lab Visits Setting
                        </div>
                    </div>
                    <div class="portlet-body">

                        <!--Begin Semen-->

                        <div class="row">
                            <input type="hidden" id="controllName" value="instruction"/>
                            <form action="{$hosturl}/controllers/{$controllname}.php?ac=addlab" method="post" enctype="multipart/form-data">
                                <div class="form-body">
                                    <div class="row">

                                        <table class="table wds50">
                                            <tr>
                                                <th colspan="2"> Lab Data</th>
                                            </tr>
                                            <tr>
                                                <th class="wds35">  Lab Name (Ar) </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$setting->centername_ar}"
                                                           data-id="{$setting->id}" data-tableName="programesetting"   
                                                           data-colName="centername_ar"  >
                                                </td> 
                                            </tr>

                                            <tr>
                                                <th class="wds35">  Lab Name (En) </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$setting->centername}"
                                                           data-id="{$setting->id}" data-tableName="programesetting"
                                                           data-colName="centername"  >
                                                </td>
                                            </tr>

                                            <tr>
                                                <th>  Phone </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$setting->phone}"  
                                                           data-id="{$setting->id}" data-tableName="programesetting"   
                                                           data-colName="phone"  >
                                                </td>
                                            </tr>

                                            <tr>
                                                <th>  Email </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$setting->email}"  
                                                           data-id="{$setting->id}" data-tableName="programesetting"   
                                                           data-colName="email"  >
                                                </td>
                                            </tr>

                                            <tr>
                                                <th> Lab No </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$labSetting->labno}"  
                                                           data-id="{$labSetting->id}" data-tableName="programesettinglab"   
                                                           data-colName="labno"  >
                                                </td>
                                            </tr>

                                            <tr>
                                                <th> Currency</th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$labSetting->currency}"  
                                                           data-id="{$labSetting->id}" data-tableName="programesettinglab"   
                                                           data-colName="currency"  >
                                                </td>
                                            </tr>

                                            <tr>
                                                <th> Conditions</th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$labSetting->conditions}"  
                                                           data-id="{$labSetting->id}" data-tableName="programesettinglab"   
                                                           data-colName="conditions"  >
                                                </td>
                                            </tr>
                                        </table>


                                        <table class="table wds35">
                                            <tr>
                                                <th colspan="3">General Setting</th>
                                            </tr>
                                            <tr>
                                                <th class="wds35">  Lab Version </th>
                                                <td colspan="2">
                                                    <div class="md-radio-inline">
                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="lab_style1" name="lab_style" class="md-radiobtn updateElement" 
                                                                   data-id="{$labSetting->id}" data-tableName="programesettinglab" value="1" 
                                                                   data-colName="lab_style"   {if $labSetting->lab_style eq 1}checked{/if}>
                                                            <label for="lab_style1">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Simple </label>
                                                        </div>

                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="lab_style2" name="lab_style" class="md-radiobtn updateElement" 
                                                                   data-id="{$labSetting->id}" data-tableName="programesettinglab" value="2"
                                                                   data-colName="lab_style"   {if $labSetting->lab_style eq 2}checked{/if}>
                                                            <label for="lab_style2">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Complete 
                                                        </div>
                                                    </div>
                                                </td> 
                                            </tr>

                                            <tr>
                                                <th class="wds35">  Doctor  </th>
                                                <td colspan="2">
                                                    <div class="md-radio-inline">
                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="refer_doctor0" name="refer_doctor" class="md-radiobtn updateElement" 
                                                                   data-id="{$setting->id}" data-tableName="programesetting" value="0" 
                                                                   data-colName="refer_doctor"   {if $setting->refer_doctor != 1}checked{/if}>
                                                            <label for="refer_doctor0">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                From Users </label>
                                                        </div>

                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="refer_doctor1" name="refer_doctor" class="md-radiobtn updateElement" 
                                                                   data-id="{$setting->id}" data-tableName="programesetting" value="1"
                                                                   data-colName="refer_doctor"   {if $setting->refer_doctor eq 1}checked{/if}>
                                                            <label for="refer_doctor1">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                From Refer 
                                                        </div>
                                                    </div>
                                                </td> 
                                            </tr>

                                            <tr>
                                                <th>  Barcode </th>
                                                <td colspan="2">
                                                    <div class="md-radio-inline">
                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="receiptstyle1" name="receiptstyle" class="md-radiobtn updateElement" 
                                                                   data-id="{$labSetting->id}" data-tableName="programesettinglab" value="1" 
                                                                   data-colName="receiptstyle"   {if $labSetting->receiptstyle eq 1}checked{/if}>
                                                            <label for="receiptstyle1">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Arabic Style  </label>
                                                        </div>

                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="receiptstyle2" name="receiptstyle" class="md-radiobtn updateElement" 
                                                                   data-id="{$labSetting->id}" data-tableName="programesettinglab" value="2"
                                                                   data-colName="receiptstyle"   {if $labSetting->receiptstyle eq 2}checked{/if}>
                                                            <label for="receiptstyle2">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                English Style 
                                                        </div>
                                                    </div>
                                                </td> 
                                            </tr>
                                            
                                            
                                                 <tr>
                                                <th>  Result Print </th>
                                                <td colspan="2">
                                                    <div class="md-radio-inline">
                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="result_print1" name="result_print" class="md-radiobtn updateElement" 
                                                                   data-id="{$labSetting->id}" data-tableName="programesettinglab" value="1" 
                                                                   data-colName="result_print"   {if $labSetting->result_print eq 1}checked{/if}>
                                                            <label for="result_print1">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                Fully Paid  </label>
                                                        </div>

                                                        <div class="md-radio fleft">
                                                            <input type="radio" id="result_print2" name="result_print" class="md-radiobtn updateElement" 
                                                                   data-id="{$labSetting->id}" data-tableName="programesettinglab" value="2"
                                                                   data-colName="result_print"   {if $labSetting->result_print eq 2}checked{/if}>
                                                            <label for="result_print2">
                                                                <span></span>
                                                                <span class="check"></span>
                                                                <span class="box"></span>
                                                                All Allowed
                                                        </div>
                                                    </div>
                                                </td> 
                                            </tr>


                                            <tr>
                                                <th>  Vat </th>
                                                <td>
                                                    <input type="text" class="form-control updateElement" value="{$labSetting->vat}"  
                                                           data-id="{$labSetting->id}" data-tableName="programesettinglab"   
                                                           data-colName="vat"  >
                                                </td>
                                                <th class="wds1">  % </th>
                                            </tr>


                                            <tr>
                                                <th>  Phone No. Length </th>
                                                <td colspan="2">
                                                    <input type="text" class="form-control updateElement" value="{$labSetting->phone_length}"  
                                                           data-id="{$labSetting->id}" data-tableName="programesettinglab"   
                                                           data-colName="phone_length"  >
                                                </td>
                                            </tr>
                                            
                                            
                                            
                                            <tr>
                                                <th>  Phone Dialing Code </th>
                                                 <td colspan="2">
                                                    <input type="text" class="form-control updateElement" value="{$labSetting->phone_code}"  
                                                           data-id="{$labSetting->id}" data-tableName="programesettinglab"   
                                                           data-colName="phone_code"  >
                                                </td>
                                            </tr>


                                        </table>
                                    </div>

                                    <div class="row">
                                        <table class="table wds100">
                                            <tr>
                                                <th colspan="4"  style="text-align: center;" >
                                                    check elements  to show 
                                                </th>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <label class="fleft " for="job_order"  >
                                                        <span>
                                                            <input type="checkbox" class="form-control updateElementCheck" id="job_order"  
                                                                   value="1"  data-id="{$labSetting->id}" data-tableName="programesettinglab"   
                                                                   data-colName="job_order" {if $labSetting->job_order eq 1}checked{/if}   >
                                                        </span> 
                                                        Job Order
                                                    </label>
                                                </td>

                                                <td>
                                                    <label class="fleft " for="saudi"  >
                                                        <span>
                                                            <input type="checkbox" class="form-control updateElementCheck" id="saudi"
                                                                   value="1"  data-id="{$labSetting->id}" data-tableName="programesettinglab"
                                                                   data-colName="saudi" {if $labSetting->saudi eq 1}checked{/if}   >
                                                        </span>
                                                        Saudi
                                                    </label>
                                                </td>


                                                <td>
                                                    <label class="fleft " for="immotile_comment"  >
                                                        <span>
                                                            <input type="checkbox" class="form-control updateElementCheck" id="immotile_comment"
                                                                   value="1"  data-id="{$labSetting->id}" data-tableName="programesettinglab"
                                                                   data-colName="immotile_comment" {if $labSetting->immotile_comment eq 1}checked{/if}   >
                                                        </span>
                                                        Immotile Comment
                                                    </label>
                                                </td>


                                                <td>
                                                    <label class="fleft " for="pinheads_comment"  >
                                                        <span>
                                                            <input type="checkbox" class="form-control updateElementCheck" id="pinheads_comment"
                                                                   value="1"  data-id="{$labSetting->id}" data-tableName="programesettinglab"
                                                                   data-colName="pinheads_comment" {if $labSetting->pinheads_comment eq 1}checked{/if}   >
                                                        </span>
                                                        Pinheads Comment
                                                    </label>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>

                                    <br/>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

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


