<style>

hr {
 border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(128, 128, 128, 0), rgba(128, 128, 128, 0.75), rgba(128, 128, 128, 0));
    width:85%;
}

/* ////////////////////////////////////////////////////// */
/* /////// The Switch - the box around the slider /////// */
/* ////////////////////////////////////////////////////// */

.switch {
  position: relative;
  display: inline-block;
  width: 60px !important;
  height: 32px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.sliderr {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.sliderr:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .sliderr {
  background-color: #98cb54;
}

input:focus + .sliderr {
  box-shadow: 0 0 1px #98cb54;
}

input:checked + .sliderr:before {
  -webkit-transform: translateX(28px);
  -ms-transform: translateX(28px);
  transform: translateX(28px);
}

/* Rounded sliders */
.sliderr.round {
  border-radius: 32px; -moz-border-radius: 32px; -webkit-border-radius: 32px;
}

.sliderr.round:before {
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  
}

/* ////////////////////////////////////////////////////// */
/* ///////////////     The Switch ENDS     ////////////// */
/* ////////////////////////////////////////////////////// */

</style>

	<!-- SQUARE_SETTINGS TABLE, WHICH ONLY INCLUDES 11 ROWS VS API_CONFIG TABLE -->
    <form action="/admin/saveSSettings" method="post" enctype="multipart/form-data">
            <div class="form form-profile aif" style='width:auto; background:none'>    
                <h1 style="margin-bottom:5px;">
                    Mobile App Settings
                </h1>
                <span style="font-weight:300;">Everything is assumed to be points or stars, etc.</span>
                
                <div style="background:#ccc; height:1px; width:auto; margin-top:10px;"></div>
                <br />
                
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                 <div style="width:auto; display:block; background:none;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Sign Up Bonus: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[sign_up_bonus_points]" class="txt" value="<?= $soptions['sign_up_bonus_points'] ?>" placeholder="" />
                    </div>                               
                </div>
                <div class="clear"></div>      
                
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                 <div style="width:auto; display:block; background:none;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Birthday Bonus: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[birthday_bonus_points]" class="txt" value="<?= $soptions['birthday_bonus_points'] ?>" placeholder="" />
                    </div>                               
                </div>
                <div class="clear"></div>              

                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                 <div style="width:auto; display:block; background:none;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Pts or Stars/$1 spent: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[bonus_points_per_1_dollar_spent]" class="txt" value="<?= $soptions['bonus_points_per_1_dollar_spent'] ?>" placeholder="" />
                    </div>                               
                </div>
                <div class="clear"></div>  
  
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                 <div style="width:auto; display:block; background:none;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Geo-Fenced Distance: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[location_distance_on_charge_saved_card]" class="txt" value="<?= $soptions['location_distance_on_charge_saved_card'] ?>" placeholder="" />
                    </div>                               
                </div>
                <div class="clear"></div>    
                
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                 <div style="width:auto; display:block; background:none;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Customer Note: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[string_note_from_customer]" class="txt" value="<?= $soptions['string_note_from_customer'] ?>" placeholder="" />
                    </div>                               
                </div>
                <div class="clear"></div>    
                
                <br />
                
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                <div style="width:auto; display:block; background:none; border-top:1px solid #ccc; padding-top:15px;" >
                    <div style="display:inline-block; float:left; width:20%; min-width:120px; height:50px; line-height:50px; font-weight:300; text-align:left; background:none;">
                        <label>Square Loyalty:</label>
                    </div>
                    <div style="display:inline-block; float:left; width:auto; min-width:150px; height:41px; line-height:41px; background:none; padding-top:9px;">
                        <?php $enable_square_loyalty = !empty($soptions['use_square_loyalty']) ? " checked='checked'" : ""; ?>
                         <label class='switch'>
                           <input class='' id='' data-toggle='toggle' type='checkbox' name="ssettings[use_square_loyalty]"<?= $enable_square_loyalty ?> /><span class='sliderr round'></span>
                         </label>                                                     
                    </div>      
                    <div class="clear"></div>
                    <p style="font-weight:300;">OFF = Use Pre-Order Stand-Alone Loyalty | ON = Use Square Loyalty</p>                    
                </div>      
                <div class="clear"></div> 
                
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                 <div style="width:auto; display:block; background:none; border-top:1px solid #ccc; padding-top:15px;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Daily Visits Limit: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[daily_limit]" class="txt" value="<?= $soptions['daily_limit'] ?>" placeholder="" />
                    </div>     
                    <div class="clear"></div>
                    <p style="font-weight:300;">0 = unlimited | X+ = X times/visits per day</p>        
                </div>
                <div class="clear"></div>                    
                
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                <div style="width:auto; display:block; background:none; border-top:1px solid #ccc; padding-top:15px;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Visit/Min Purch: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[min_purch]" class="txt" value="<?= $soptions['min_purch'] ?>" placeholder="" />
                    </div>       
                     <div class="clear"></div>
                    <p style="font-weight:300;">ie. $5 = 500</p>                                              
                </div>
                <div class="clear"></div>
            
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                <div style="width:auto; display:block; background:none;border-top:1px solid #ccc; padding-top:15px;">
                    <div style="display:inline-block; float:left; width:20%; min-width:120px; height:50px; line-height:50px; font-weight:300; text-align:left; background:none;">
                        <label>Loyalty Type:</label>
                    </div>
                    <div style="display:inline-block; float:left; width:auto; min-width:150px; height:41px; line-height:41px; background:none; padding-top:9px;">
                        <?php $toggle_loyalty_type = !empty($soptions['rewards_type']) ? " checked='checked'" : ""; ?>
                         <label class='switch'>
                           <input class='' id='' data-toggle='toggle' type='checkbox' name="ssettings[rewards_type]"<?= $toggle_loyalty_type ?> /><span class='sliderr round'></span>
                         </label>                                                     
                    </div>            
                    <div class="clear"></div>
                    <p style="font-weight:300;">OFF = X stars/visit | ON = X stars/$</p>                                   
                </div>      
                <div class="clear"></div>         
                
                <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                <div style="width:auto; display:block; background:none;  border-top:1px solid #ccc; padding-top:15px;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Reward Value: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[reward_value]" class="txt" value="<?= $soptions['reward_value'] ?>" placeholder="" />
                    </div>     
                    <div class="clear"></div>
                    <p style="font-weight:300;">ie. $5 = 500</p>                                               
                </div>
                <div class="clear"></div>                
                 
                 <!-- ########### SETTINGS FIELD STARTS HERE ########### -->
                <div style="width:auto; display:block; background:none;  border-top:1px solid #ccc; padding-top:15px;">   
                
                    <div style="display:inline-block; width:20%; min-width:120px; height:35px; font-weight:300; text-align:left;">
                        <label>Reward Cost: </label>
                    </div>
                    <div style="display:inline-block; width:auto; min-width:150px;">
                        <input type="text" name="ssettings[reward_cost]" class="txt" value="<?= $soptions['reward_cost'] ?>" placeholder="" />
                    </div>         
                     <div class="clear"></div>
                    <p style="font-weight:300;">ie. How many stars/points the above Reward costs?</p>                                          
                </div>
                <div class="clear"></div>                  
                <br />
                <hr />
                <br />
                <div style="text-align:center; font-weight:300;">See <a href="/faq">FAQ Page</a> for more detailed descriptions.</div>
            </div><!-- AIF FORM ENDS HERE -->  
            <!-- ###################################################################### --> 

            <p>
                <center>                
                <br /><input class="btn btn-blue" type="submit" name="save_ssettings" value="Save Settings" /> 
                </center>
            </p>                           
    </form>
    <div class="clear;"></div>
 </div><!-- END OF SETTINGS DIV -->