<script type="text/javascript" src="<?php echo base_url();?>assets/js/settings.js"></script>
<aside class="right-side">
	<section class="content-header">
        <div class="title_bar">
            <h1 class="major_txt_color">General Settings View</h1>
            <div class="breadcrumb_container"><?php echo breadcrumb_links();?></div>
        </div>
    </section>
	<section class="content">
        <div class="row">
           
            <div class="col-xs-12">
                <?php #if (in_array(3, $permission)) {?>
                    <h3 style="margin-top: 0; margin-right: 5px; width: 100%; display: inline-block;">
                        <a class="label btn btn-primary float-rht edit" href="<?php echo $edit_link?>"><span>Edit</span></a>
                    </h3>
                <?php #}?>
                <div class="box box-danger">
                    <div class="box-body table-responsive">
                        <div class="col-md-6">     
                           <div class="form-group">
                                <span class="first-coln">Year Setting</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($month_name);?>
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Prefix</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <input type="checkbox" class="form-control prefix" name="prefix" value="1" <?php echo ($setting->prefix == 1) ? 'checked' : '';?> disabled />
                                </span>    
                            </div>
                            <div class="form-group">
                                <span class="first-coln">GST</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->gst);?>
                                </span>
                            </div>
                            <div class="form-group">
                                <span class="first-coln">Synchronous URL</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->sync_url);?>&nbsp;&nbsp;<button type="button" class="btn  btn-info btn-xs" data-loading-text="Loading...">Sync Now</button>
                                    <input type="hidden" class="sync_url" name="sync_url" value="<?php echo $setting->sync_url;?>" />
                                </span>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <span class="first-coln">Counter Availability</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <input type="checkbox" class="form-control kiosk_availability" name="kiosk_availability" value="1" <?php echo ($setting->kiosk_availability == 1) ? 'checked' : '';?> disabled />
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Scan Availability</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <input type="checkbox" class="form-control scan_availability" name="scan_availability" value="1" <?php echo ($setting->scan_availability == 1) ? 'checked' : '';?> disabled />
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Num Pad</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <input type="checkbox" class="form-control num_pad" name="num_pad" value="1" <?php echo ($setting->num_pad == 1) ? 'checked' : '';?> disabled />
                                </span>
                            </div>
                            
                            <div class="form-group">
                                <span class="first-coln">Is Category (Archanai)</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <input type="checkbox" class="form-control archanai_cat" name="archanai_cat" value="1" <?php echo ($setting->is_category == 1) ? 'checked' : '';?> disabled />
                                </span>
                            </div>
                            
                            
                            <div class="form-group">
                                <span class="first-coln">OTP Contact No</span>
                                <span class="seperator">:</span>
                                <span class="second-coln">
                                    <?php echo text($setting->otp_contact_no);?>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="container">  
                            <!-- Modal -->
                            <div class="modal fade" id="myModal" role="dialog">
                              <div class="modal-dialog">

                                <!-- Modal content-->
                                <div class="modal-content">
                                  <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h4 class="modal-title" style="text-align: center;font-size: 22px;">Sync Data From One Server to Another</h4>
                                  </div>
                                  <div class="modal-body" style="text-align: center;">
                                      <div class="inprogress"><i class="fa fa-circle-o-notch fa-spin" style="font-size:40px"></i>
                                          <p style="margin: 50px;font-size: 18px;letter-spacing: 1px;line-height: 39px;">Sync Operation is In Progress.<br>Please Wait Until the Pop-up Closed!! <br> Thanks!!</p></div>
                                       <div class="completed">   
                                           <p style="margin:15px;font-size: 18px;letter-spacing: 1px;line-height: 39px;">Sync Operation is Completed.<br> Thanks!!</p>
                                       </div>
                                  </div>
                                    <div class="modal-footer" style="display: none; border-top: 2px solid #f5f5f5;">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                  </div>
                                </div>

                              </div>
                            </div>  
                        </div>
                    <div class="box-footer float-clear"></div>
                </div>
            </div>
        </div><!-- /.row -->
    </section><!-- /.content -->
</aside>