<div class="page-content-wrapper">
	<div class="page-content">
		<div class="page-bar">
			<div class="page-title-breadcrumb">
				<div class=" pull-left"><div class="page-title">Settings</div></div>
				<ol class="breadcrumb page-breadcrumb pull-right">
					<li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i></li>
					<li>Settings</li>
				</ol>
			</div>
		</div>
		<div class="row">
			 <div class="col-md-12 col-sm-12">
				 <div class="card card-box">
					 <div class="card-head"><header>Settings</header></div>
					 <div class="card-body" id="bar-parent1">
						 <?php if(isset($error) && $error!='') { ?>
						 <div class="alert alert-danger"><?php echo $error; ?></div>
						 <?php } else if(isset($success) && $success!=''){ ?>
						 <div class="alert alert-success"><?php echo $success; ?></div>
						 <?php } else if(isset($_REQUEST['success'])){ ?>
						 <div class="alert alert-success"><?php echo $_REQUEST['success']; ?></div>
						 <?php } ?>
                         <form action="" id="form_staff_add" class="form-horizontal" method="post" enctype="multipart/form-data">
							 <div class="form-body">
								 <!--<div class="form-group row">
									<label class="control-label col-md-3">Admin Email Address<span class="required"> * </span></label>
									<div class="col-md-4">                                     
											<input name="email" type="text" id="email" class="form-control" data-required="1" value="<?php if(isset($_POST['email'])) { echo htmlentities(($_POST['email']), ENT_QUOTES); } else if(isset($resEdit['email']) && $resEdit['email']!=''){ echo $resEdit['email'];} ?>" placeholder="Email Address" />
									</div>
								 </div>-->
								 <div class="form-group row">
									 <label class="control-label col-md-3">Site Name<span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="site_name" type="text" id="site_name" data-required="1" class="form-control" value="<?php if(isset($_POST['site_name'])) { echo htmlentities(($_POST['site_name']), ENT_QUOTES); } else if(isset($setRec['site_name']) && $setRec['site_name']!=''){ echo $setRec['site_name'];} ?>"/>
									 </div>
								 </div>
                                 <div class="form-group row">
									<label class="control-label col-md-3">Upload Logo</label>
									<div class="col-md-5">        
										<input type="file" name="logo" id="logo">     
										<?php if(isset($setRec['logo']) && $setRec['logo']!=''){ ?>  
										<div style="float:right;">                                                   		
											<img src="<?php echo LOGO_IMG_URL.$setRec['logo']; ?>" style="max-width:200px;position: absolute;margin-top: -9px;" >
										</div>
										<?php } ?>                                  
									</div>                                                
								</div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Copyright<span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="copyright" type="text" id="copyright" data-required="1" class="form-control" value="<?php if(isset($_POST['copyright'])) { echo htmlentities(($_POST['copyright']), ENT_QUOTES); } else if(isset($setRec['copyright']) && $setRec['copyright']!=''){ echo $setRec['copyright'];} ?>"/>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">From Email Address<span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="from_email" type="text" id="from_email" class="form-control" data-required="1" value="<?php if(isset($_POST['from_email'])) { echo htmlentities(($_POST['from_email']), ENT_QUOTES); } else if(isset($setRec['from_email']) && $setRec['from_email']!=''){ echo $setRec['from_email'];} ?>" placeholder="From Email Address" />
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Admin Notification Email<span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="admin_email" type="text" id="admin_email" class="form-control" data-required="1" value="<?php if(isset($_POST['admin_email'])) { echo htmlentities(($_POST['admin_email']), ENT_QUOTES); } else if(isset($admin_email) && $admin_email!=''){ echo $admin_email;} ?>" />
									 </div>
								 </div>
								 <!--<div class="form-group row">
                                     <label class="control-label col-md-3">Admin Name<span class="required"> * </span></label>
                                     <div class="col-md-4">
										<input name="name" type="text" id="name" data-required="1" class="form-control" value="<?php if(isset($_POST['name'])) { echo htmlentities(($_POST['name']), ENT_QUOTES); } else if(isset($ed_admin_name) && $ed_admin_name!=''){ echo $ed_admin_name;} ?>"/>
                                      </div>
                                 </div>-->
								 <div class="form-group row">
									 <label class="control-label col-md-3">Enable Online Payment<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 100px; float: left;">
											 <input id="enable_online_payment_yes" name="enable_online_payment" type="radio" value="Yes" <?php if(isset($_POST['enable_online_payment']) && $_POST['enable_online_payment']=='Yes'){ echo 'checked="checked"'; } else if(isset($setRec['enable_online_payment']) && $setRec['enable_online_payment']=='Yes'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> Yes </label>
										 </div>
										 <div class="radio radio-aqua">
											 <input id="enable_online_payment_no" name="enable_online_payment" type="radio" value="No" <?php if(isset($_POST['enable_online_payment']) && $_POST['enable_online_payment']=='No'){ echo 'checked="checked"'; } else if(isset($setRec['enable_online_payment']) && $setRec['enable_online_payment']=='No'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> No </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Enable Live Chat<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 100px; float: left;">
											 <input id="enable_live_chat_yes" name="enable_live_chat" type="radio" value="Yes" <?php if(isset($_POST['enable_live_chat']) && $_POST['enable_live_chat']=='Yes'){ echo 'checked="checked"'; } else if(isset($setRec['enable_live_chat']) && $setRec['enable_live_chat']=='Yes'){ echo 'checked="checked"'; }?> >
											 <label for="enable_live_chat_yes"> Yes </label>
										 </div>
	                                     <div class="radio radio-aqua">
											 <input id="enable_live_chat_no" name="enable_live_chat" type="radio" value="No" <?php if(isset($_POST['enable_live_chat']) && $_POST['enable_live_chat']=='No'){ echo 'checked="checked"'; } else if(isset($setRec['enable_live_chat']) && $setRec['enable_live_chat']=='No'){ echo 'checked="checked"'; }?> >
											 <label for="enable_live_chat_no"> No </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Colour scheme<span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="color_scheme" type="text" id="color_scheme" class="form-control" data-required="1" value="<?php if(isset($_POST['color_scheme'])) { echo htmlentities(($_POST['color_scheme']), ENT_QUOTES); } else if(isset($setRec['color_scheme']) && $setRec['color_scheme']!=''){ echo $setRec['color_scheme'];} ?>" placeholder="Colour scheme" />
									 </div>
								 </div>
								 
								 <div class="form-group row">
									 <label class="control-label col-md-3">PG Choice<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-6">
										 <div style="width: 100px; float: left;">
											 <input id="pg_paypal" name="pg_paypal" type="checkbox" value="yes" <?php if(isset($_POST['pg_paypal']) && $_POST['pg_paypal']=='yes'){ echo 'checked="checked"'; } else if(isset($setRec['pg_paypal']) && $setRec['pg_paypal']=='yes'){ echo 'checked="checked"'; }?> >
											 <label for="pg_paypal"> Paypal </label>
										 </div>
										 <div style="width: 128px; float: left;">
											 <input id="pg_payu" name="pg_payu" type="checkbox" value="yes" <?php if(isset($_POST['pg_payu']) && $_POST['pg_payu']=='yes'){ echo 'checked="checked"'; } else if(isset($setRec['pg_payu']) && $setRec['pg_payu']=='yes'){ echo 'checked="checked"'; }?> >
											 <label for="pg_payumoney"> PayUMoney </label>
										 </div>
										 <div style="width: 128px; float: left;">
											 <input id="pg_stripe" name="pg_stripe" type="checkbox" value="yes" <?php if(isset($_POST['pg_stripe']) && $_POST['pg_stripe']=='yes'){ echo 'checked="checked"'; } else if(isset($setRec['pg_stripe']) && $setRec['pg_stripe']=='yes'){ echo 'checked="checked"'; }?> >
											 <label for="pg_stripe"> Stripe </label>
										 </div>
										 <div style="width: 128px; float: left;">
											 <input id="pg_cod" name="pg_cod" type="checkbox" value="yes" <?php if(isset($_POST['pg_cod']) && $_POST['pg_cod']=='yes'){ echo 'checked="checked"'; } else if(isset($setRec['pg_cod']) && $setRec['pg_cod']=='yes'){ echo 'checked="checked"'; }?> >
											 <label for="pg_cod"> COD </label>
										 </div>										  
									 </div>
								 </div>
								 
								 <div class="form-group row">
									 <label class="control-label col-md-3">PayUMoney Config<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 100px; float: left;">
											 <input id="cca_live" name="cca_config" type="radio" value="live" <?php if(isset($_POST['cca_config']) && $_POST['cca_config']=='live'){ echo 'checked="checked"'; } else if(isset($setRec['cca_config']) && $setRec['cca_config']=='live'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> Live </label>
										 </div>
										 <div class="radio radio-aqua">
											 <input id="cca_test" name="cca_config" type="radio" value="test" <?php if(isset($_POST['cca_config']) && $_POST['cca_config']=='test'){ echo 'checked="checked"'; } else if(isset($setRec['cca_config']) && $setRec['cca_config']=='test'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> Test </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">PayPal Config<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 100px; float: left;">
											 <input id="paypal_live" name="paypal_config" type="radio" value="live" <?php if(isset($_POST['paypal_config']) && $_POST['paypal_config']=='live'){ echo 'checked="checked"'; } else if(isset($setRec['paypal_config']) && $setRec['paypal_config']=='live'){ echo 'checked="checked"'; }?> >
											 <label for="paypal_live"> Live </label>
										 </div>
										 <div class="radio radio-aqua">
											 <input id="paypal_test" name="paypal_config" type="radio" value="test" <?php if(isset($_POST['paypal_config']) && $_POST['paypal_config']=='test'){ echo 'checked="checked"'; } else if(isset($setRec['paypal_config']) && $setRec['paypal_config']=='test'){ echo 'checked="checked"'; }?> >
											 <label for="paypal_test"> Test </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Stripe Config<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 100px; float: left;">
											 <input id="stripe_live" name="stripe_config" type="radio" value="live" <?php if(isset($_POST['stripe_config']) && $_POST['stripe_config']=='live'){ echo 'checked="checked"'; } else if(isset($setRec['stripe_config']) && $setRec['stripe_config']=='live'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> Live </label>
										 </div>
										 <div class="radio radio-aqua">
											 <input id="stripe_test" name="stripe_config" type="radio" value="test" <?php if(isset($_POST['stripe_config']) && $_POST['stripe_config']=='test'){ echo 'checked="checked"'; } else if(isset($setRec['stripe_config']) && $setRec['stripe_config']=='test'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> Test </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Casual Leaves per Year<span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="casual_leave_count" type="text" id="casual_leave_count" class="form-control" data-required="1" value="<?php if(isset($_POST['casual_leave_count'])) { echo htmlentities(($_POST['casual_leave_count']), ENT_QUOTES); } else if(isset($setRec['casual_leave_count']) && $setRec['casual_leave_count']!=''){ echo $setRec['casual_leave_count'];} ?>" placeholder="Casual Leave Count" />
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Advance Leave Allowed<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 100px; float: left;">
											 <input id="allow_advance_leave_yes" name="allow_advance_leave" type="radio" value="Yes" <?php if(isset($_POST['allow_advance_leave']) && $_POST['allow_advance_leave']=='Yes'){ echo 'checked="checked"'; } else if(isset($setRec['allow_advance_leave']) && $setRec['allow_advance_leave']=='Yes'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> Yes </label>
										 </div>
										 <div class="radio radio-aqua">
											 <input id="allow_advance_leave_no" name="allow_advance_leave" type="radio" value="No" <?php if(isset($_POST['allow_advance_leave']) && $_POST['allow_advance_leave']=='No'){ echo 'checked="checked"'; } else if(isset($setRec['allow_advance_leave']) && $setRec['allow_advance_leave']=='No'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> No </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Sick Leaves per Year<span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="sick_leave_count" type="text" id="sick_leave_count" class="form-control" data-required="1" value="<?php if(isset($_POST['sick_leave_count'])) { echo htmlentities(($_POST['sick_leave_count']), ENT_QUOTES); } else if(isset($setRec['sick_leave_count']) && $setRec['sick_leave_count']!=''){ echo $setRec['sick_leave_count'];} ?>" placeholder="Casual Leave Count" />
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Advance Sick Leave Allowed<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 100px; float: left;">
											 <input id="allow_advance_sick_leave_yes" name="allow_advance_sick_leave" type="radio" value="Yes" <?php if(isset($_POST['allow_advance_sick_leave']) && $_POST['allow_advance_sick_leave']=='Yes'){ echo 'checked="checked"'; } else if(isset($setRec['allow_advance_sick_leave']) && $setRec['allow_advance_sick_leave']=='Yes'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> Yes </label>
										 </div>
										 <div class="radio radio-aqua">
											 <input id="allow_advance_sick_leave_no" name="allow_advance_sick_leave" type="radio" value="No" <?php if(isset($_POST['allow_advance_sick_leave']) && $_POST['allow_advance_sick_leave']=='No'){ echo 'checked="checked"'; } else if(isset($setRec['allow_advance_sick_leave']) && $setRec['allow_advance_sick_leave']=='No'){ echo 'checked="checked"'; }?> >
											 <label for="radiobg4"> No </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Avg. working days <br><span style="font-size: 10px;">To calculate deduction</span> <span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="working_days" type="text" id="working_days" class="form-control" data-required="1" value="<?php if(isset($_POST['working_days'])) { echo htmlentities(($_POST['working_days']), ENT_QUOTES); } else if(isset($setRec['working_days']) && $setRec['working_days']!=''){ echo $setRec['working_days'];} ?>" placeholder="Working Days Count" />
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Admin Commission (%) <br><span style="font-size: 10px;">Direct</span> <span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="admin_commission_direct" type="text" id="admin_commission_direct" class="form-control" data-required="1" value="<?php if(isset($_POST['admin_commission_direct'])) { echo htmlentities(($_POST['admin_commission_direct']), ENT_QUOTES); } else if(isset($setRec['admin_commission_direct']) && $setRec['admin_commission_direct']!=''){ echo $setRec['admin_commission_direct'];} ?>" placeholder="Admin Commission" />
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Admin Commission (%) <br><span style="font-size: 10px;">Admin Dispatch</span> <span class="required"> * </span></label>
									 <div class="col-md-4">
										 <input name="admin_commission_admin" type="text" id="admin_commission_admin" class="form-control" data-required="1" value="<?php if(isset($_POST['admin_commission_admin'])) { echo htmlentities(($_POST['admin_commission_admin']), ENT_QUOTES); } else if(isset($setRec['admin_commission_admin']) && $setRec['admin_commission_admin']!=''){ echo $setRec['admin_commission_admin'];} ?>" placeholder="Admin Commission" />
									 </div>
								 </div>
								 
							 </div>
							 <div class="form-group">
								 <div class="offset-md-3 col-md-9">
									 <button type="submit" name="update" class="btn btn-info">Update</button>
								 </div>
							 </div>
						 </form>
					 </div>
				 </div>
			</div>
		</div>
		<div id="categories" class="row">
			<div class="col-md-12 col-sm-12">
				<div class="card card-box">
					<div class="card-head"><header>Category Charge</header></div>
					<div class="card-body" id="bar-parent1">
						<?php if(isset($errorCat) && $errorCat!='') { ?>
						<div class="alert alert-danger"><?php echo $errorCat; ?></div>
						<?php } ?>
						<form action="" id="form_cat" class="form-horizontal" method="post">
							<div class="form-body">
								<div class="form-group row">
									<label class="control-label col-md-3">Visit Charge<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="visit_charge" type="text" id="visit_charge" class="form-control" data-required="1" value="<?php if(isset($_POST['visit_charge'])) { echo htmlentities(($_POST['visit_charge']), ENT_QUOTES); } else if(isset($setRec['visit_charge']) && $setRec['visit_charge']!=''){ echo $setRec['visit_charge'];} ?>" placeholder="Visit Charge" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Minimum Charge<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="min_charge" type="text" id="min_charge" class="form-control" data-required="1" value="<?php if(isset($_POST['min_charge'])) { echo htmlentities(($_POST['min_charge']), ENT_QUOTES); } else if(isset($setRec['min_charge']) && $setRec['min_charge']!=''){ echo $setRec['min_charge'];} ?>" placeholder="Minimum Charge" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Maximum Charge<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="max_charge" type="text" id="max_charge" class="form-control" data-required="1" value="<?php if(isset($_POST['max_charge'])) { echo htmlentities(($_POST['max_charge']), ENT_QUOTES); } else if(isset($setRec['max_charge']) && $setRec['max_charge']!=''){ echo $setRec['max_charge'];} ?>" placeholder="Maximum Charge" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Hourly Rate<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="hourly_rate" type="text" id="hourly_rate" class="form-control" data-required="1" value="<?php if(isset($_POST['hourly_rate'])) { echo htmlentities(($_POST['hourly_rate']), ENT_QUOTES); } else if(isset($setRec['hourly_rate']) && $setRec['hourly_rate']!=''){ echo $setRec['hourly_rate'];} ?>" placeholder="Hourly Rate" />
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="offset-md-3 col-md-9">
									<button type="submit" name="update_cat" class="btn btn-info">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="categories_direct" class="row">
			<div class="col-md-12 col-sm-12">
				<div class="card card-box">
					<div class="card-head"><header>Minimum Charges - Direct Technicians</header></div>
					<div class="card-body" id="bar-parent1">
						<?php if(isset($errorCatDirect) && $errorCatDirect!='') { ?>
						<div class="alert alert-danger"><?php echo $errorCatDirect; ?></div>
						<?php } ?>
						<form action="" id="form_cat_direct" class="form-horizontal" method="post">
							<div class="form-body">
								<div class="form-group row">
									<label class="control-label col-md-3">Visit Charge<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="visit_charge_direct" type="text" id="visit_charge_direct" class="form-control" data-required="1" value="<?php if(isset($_POST['visit_charge_direct'])) { echo htmlentities(($_POST['visit_charge_direct']), ENT_QUOTES); } else if(isset($setRec['visit_charge_direct']) && $setRec['visit_charge_direct']!=''){ echo $setRec['visit_charge_direct'];} ?>" placeholder="Visit Charge" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Minimum Charge<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="min_charge_direct" type="text" id="min_charge_direct" class="form-control" data-required="1" value="<?php if(isset($_POST['min_charge_direct'])) { echo htmlentities(($_POST['min_charge_direct']), ENT_QUOTES); } else if(isset($setRec['min_charge_direct']) && $setRec['min_charge_direct']!=''){ echo $setRec['min_charge_direct'];} ?>" placeholder="Minimum Charge" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Hourly Rate<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="hourly_rate_direct" type="text" id="hourly_rate_direct" class="form-control" data-required="1" value="<?php if(isset($_POST['hourly_rate_direct'])) { echo htmlentities(($_POST['hourly_rate_direct']), ENT_QUOTES); } else if(isset($setRec['hourly_rate_direct']) && $setRec['hourly_rate_direct']!=''){ echo $setRec['hourly_rate_direct'];} ?>" placeholder="Hourly Rate" />
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="offset-md-3 col-md-9">
									<button type="submit" name="update_cat_direct" class="btn btn-info">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="special_charge" class="row">
			<div class="col-md-12 col-sm-12">
				<div class="card card-box">
					<div class="card-head"><header>Special Rates</header></div>
					<div class="card-body" id="bar-parent1">
						<?php if(isset($errorSpecial) && $errorSpecial!='') { ?>
						<div class="alert alert-danger"><?php echo $errorSpecial; ?></div>
						<?php } ?>
						<form action="" id="form_special" class="form-horizontal" method="post">
							<div class="form-body">
								<div class="form-group row">
									<label class="control-label col-md-3">Night (% extra)<span class="required"> * </span></label>
									<div class="col-md-4">
										<input name="extra_charge_night" type="text" id="extra_charge_night" class="form-control" data-required="1" value="<?php if(isset($_POST['extra_charge_night'])) { echo htmlentities(($_POST['extra_charge_night']), ENT_QUOTES); } else if(isset($setRec['extra_charge_night']) && $setRec['extra_charge_night']!=''){ echo $setRec['extra_charge_night'];} ?>" placeholder="Night Charge" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Public Holidays (% extra)<span class="required"> * </span></label><div class="col-md-4">
										<input name="extra_charge_holiday" type="text" id="extra_charge_holiday" class="form-control" data-required="1" value="<?php if(isset($_POST['extra_charge_holiday'])) { echo htmlentities(($_POST['extra_charge_holiday']), ENT_QUOTES); } else if(isset($setRec['extra_charge_holiday']) && $setRec['extra_charge_holiday']!=''){ echo $setRec['extra_charge_holiday'];} ?>" placeholder="Holiday Charge" />
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="offset-md-3 col-md-9">
									<button type="submit" name="update_special" class="btn btn-info">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="apps" class="row">
			<div class="col-md-12 col-sm-12">
				<div class="card card-box">
					<div class="card-head"><header>App Settings</header></div>
					<div class="card-body" id="bar-parent1">
						<?php if(isset($errorApp) && $errorApp!='') { ?>
						<div class="alert alert-danger"><?php echo $errorApp; ?></div>
						<?php } ?>
						<form action="" id="form_cat" class="form-horizontal" method="post">
							<div class="form-body">
								<h4>iOS App</h4>
								<div class="form-group row">
									<label class="control-label col-md-3">Share Text</label>
									<div class="col-md-4">
										<input name="share_text_ios" type="text" id="share_text_ios" class="form-control" data-required="1" value="<?php if(isset($_POST['share_text_ios'])) { echo htmlentities(($_POST['share_text_ios']), ENT_QUOTES); } else if(isset($setRec['share_text_ios']) && $setRec['share_text_ios']!=''){ echo $setRec['share_text_ios'];} ?>" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Share Link</label>
									<div class="col-md-4">
										<input name="share_link_ios" type="text" id="share_link_ios" class="form-control" data-required="1" value="<?php if(isset($_POST['share_link_ios'])) { echo htmlentities(($_POST['share_link_ios']), ENT_QUOTES); } else if(isset($setRec['share_link_ios']) && $setRec['share_link_ios']!=''){ echo $setRec['share_link_ios'];} ?>" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">User App Link</label>
									<div class="col-md-4">
										<input name="ios_user_app_link" type="text" id="ios_user_app_link" class="form-control" data-required="1" value="<?php if(isset($_POST['ios_user_app_link'])) { echo htmlentities(($_POST['ios_user_app_link']), ENT_QUOTES); } else if(isset($setRec['ios_user_app_link']) && $setRec['ios_user_app_link']!=''){ echo $setRec['ios_user_app_link'];} ?>" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Technician App Link</label>
									<div class="col-md-4">
										<input name="ios_tech_app_link" type="text" id="ios_tech_app_link" class="form-control" data-required="1" value="<?php if(isset($_POST['ios_tech_app_link'])) { echo htmlentities(($_POST['ios_tech_app_link']), ENT_QUOTES); } else if(isset($setRec['ios_tech_app_link']) && $setRec['ios_tech_app_link']!=''){ echo $setRec['ios_tech_app_link'];} ?>" />
									</div>
								</div>
								<h4>Android App</h4>
								<div class="form-group row">
									<label class="control-label col-md-3">Share Text</label>
									<div class="col-md-4">
										<input name="share_text_android" type="text" id="share_text_android" class="form-control" data-required="1" value="<?php if(isset($_POST['share_text_android'])) { echo htmlentities(($_POST['share_text_android']), ENT_QUOTES); } else if(isset($setRec['share_text_android']) && $setRec['share_text_android']!=''){ echo $setRec['share_text_android'];} ?>" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Share Link</label>
									<div class="col-md-4">
										<input name="share_link_android" type="text" id="share_link_android" class="form-control" data-required="1" value="<?php if(isset($_POST['share_link_android'])) { echo htmlentities(($_POST['share_link_android']), ENT_QUOTES); } else if(isset($setRec['share_link_android']) && $setRec['share_link_android']!=''){ echo $setRec['share_link_android'];} ?>" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">User App Link</label>
									<div class="col-md-4">
										<input name="android_user_app_link" type="text" id="android_user_app_link" class="form-control" data-required="1" value="<?php if(isset($_POST['android_user_app_link'])) { echo htmlentities(($_POST['android_user_app_link']), ENT_QUOTES); } else if(isset($setRec['android_user_app_link']) && $setRec['android_user_app_link']!=''){ echo $setRec['android_user_app_link'];} ?>" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Technician App Link</label>
									<div class="col-md-4">
										<input name="android_tech_app_link" type="text" id="android_tech_app_link" class="form-control" data-required="1" value="<?php if(isset($_POST['android_tech_app_link'])) { echo htmlentities(($_POST['android_tech_app_link']), ENT_QUOTES); } else if(isset($setRec['android_tech_app_link']) && $setRec['android_tech_app_link']!=''){ echo $setRec['android_tech_app_link'];} ?>" />
									</div>
								</div>
								<h4>General</h4>
								<div class="form-group row">
									<label class="control-label col-md-3">Privacy Policy - User</label>
									<div class="col-md-4">
										<input name="app_user_privacy_url" type="text" id="app_user_privacy_url" class="form-control" data-required="1" value="<?php if(isset($_POST['app_user_privacy_url'])) { echo htmlentities(($_POST['app_user_privacy_url']), ENT_QUOTES); } else if(isset($setRec['app_user_privacy_url']) && $setRec['app_user_privacy_url']!=''){ echo $setRec['app_user_privacy_url'];} ?>" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Privacy Policy - Technician &amp; Purchase Partner</label>
									<div class="col-md-4">
										<input name="app_tech_privacy_url" type="text" id="app_tech_privacy_url" class="form-control" data-required="1" value="<?php if(isset($_POST['app_tech_privacy_url'])) { echo htmlentities(($_POST['app_tech_privacy_url']), ENT_QUOTES); } else if(isset($setRec['app_tech_privacy_url']) && $setRec['app_tech_privacy_url']!=''){ echo $setRec['app_tech_privacy_url'];} ?>" />
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="offset-md-3 col-md-9">
									<button type="submit" name="update_app" class="btn btn-info">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="referral" class="row">
			<div class="col-md-12 col-sm-12">
				<div class="card card-box">
					<div class="card-head"><header>Referrals</header></div>
					<div class="card-body" id="bar-parent1">
						<?php if(isset($errorReferral) && $errorReferral!='') { ?>
						<div class="alert alert-danger"><?php echo $errorReferral; ?></div>
						<?php }  ?>
						<form action="" id="form_referrals" class="form-horizontal" method="post">
							<div class="form-body">
								<div class="form-group row">
									<label class="control-label col-md-3">Referrer Commission<span class="required"> * </span></label>
									<div style="padding-top: 10px;" class="col-md-4">
										<div class="radio radio-aqua" style="width: 100px; float: left;">
											<input id="referrer_commission_yes" name="referrer_commission" type="radio" value="Yes" <?php if(isset($_POST['referrer_commission']) && $_POST['referrer_commission']=='Yes'){ echo 'checked="checked"'; } else if(isset($setRec['referrer_commission']) && $setRec['referrer_commission']=='Yes'){ echo 'checked="checked"'; }?> >
											<label for="radiobg4"> Yes </label>
										</div>
										<div class="radio radio-aqua">
											<input id="referrer_commission_no" name="referrer_commission" type="radio" value="No" <?php if(isset($_POST['referrer_commission']) && $_POST['referrer_commission']=='No'){ echo 'checked="checked"'; } else if(isset($setRec['referrer_commission']) && $setRec['referrer_commission']=='No'){ echo 'checked="checked"'; }?> >
											<label for="radiobg4"> No </label>
										</div>
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Referrer Commission Amount</label>
									<div class="col-md-4">
										<input name="referrer_commission_amount" type="text" id="referrer_commission_amount" class="form-control" data-required="1" value="<?php if(isset($_POST['referrer_commission_amount'])) { echo htmlentities(($_POST['referrer_commission_amount']), ENT_QUOTES); } else if(isset($setRec['referrer_commission_amount']) && $setRec['referrer_commission_amount']!=''){ echo $setRec['referrer_commission_amount'];} ?>"  />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Referee Commission<span class="required"> * </span></label>
									<div style="padding-top: 10px;" class="col-md-4">
										<div class="radio radio-aqua" style="width: 100px; float: left;">
											<input id="referee_commission_yes" name="referee_commission" type="radio" value="Yes" <?php if(isset($_POST['referee_commission']) && $_POST['referee_commission']=='Yes'){ echo 'checked="checked"'; } else if(isset($setRec['referee_commission']) && $setRec['referee_commission']=='Yes'){ echo 'checked="checked"'; }?> >
											<label for="radiobg4"> Yes </label>
										</div>
										<div class="radio radio-aqua">
											<input id="referee_commission_no" name="referee_commission" type="radio" value="No" <?php if(isset($_POST['referee_commission']) && $_POST['referee_commission']=='No'){ echo 'checked="checked"'; } else if(isset($setRec['referee_commission']) && $setRec['referee_commission']=='No'){ echo 'checked="checked"'; }?> >
											<label for="radiobg4"> No </label>
										</div>
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Referee Commission Amount</label>
									<div class="col-md-4">
										<input name="referee_commission_amount" type="text" id="referee_commission_amount" class="form-control" data-required="1" value="<?php if(isset($_POST['referee_commission_amount'])) { echo htmlentities(($_POST['referee_commission_amount']), ENT_QUOTES); } else if(isset($setRec['referee_commission_amount']) && $setRec['referee_commission_amount']!=''){ echo $setRec['referee_commission_amount'];} ?>"  />
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="offset-md-3 col-md-9">
									<button type="submit" name="update_referral" class="btn btn-info">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="support" class="row">
			<div class="col-md-12 col-sm-12">
				<div class="card card-box">
					<div class="card-head"><header>Support Numbers</header></div>
					<div class="card-body" id="bar-parent1">
						<?php if(isset($errorSupport) && $errorSupport!='') { ?>
						<div class="alert alert-danger"><?php echo $errorSupport; ?></div>
						<?php }  ?>
						<form action="" id="form_support" class="form-horizontal" method="post">
							<div class="form-body">
								<div class="form-group row">
									<label class="control-label col-md-3">User</label>
									<div class="col-md-4">
										<input name="support_no_user" type="text" id="support_no_user" class="form-control" data-required="1" value="<?php if(isset($_POST['support_no_user'])) { echo htmlentities(($_POST['support_no_user']), ENT_QUOTES); } else if(isset($setRec['support_no_user']) && $setRec['support_no_user']!=''){ echo $setRec['support_no_user'];} ?>" placeholder="User Support Number" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Technician</label>
									<div class="col-md-4">
										<input name="support_no_tech" type="text" id="support_no_tech" class="form-control" data-required="1" value="<?php if(isset($_POST['support_no_tech'])) { echo htmlentities(($_POST['support_no_tech']), ENT_QUOTES); } else if(isset($setRec['support_no_tech']) && $setRec['support_no_tech']!=''){ echo $setRec['support_no_tech'];} ?>" placeholder="Tech Support Number" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">User support email</label>
									<div class="col-md-4">
										<input name="user_support_email" type="text" id="user_support_email" class="form-control" data-required="1" value="<?php if(isset($_POST['user_support_email'])) { echo htmlentities(($_POST['user_support_email']), ENT_QUOTES); } else if(isset($setRec['user_support_email']) && $setRec['user_support_email']!=''){ echo $setRec['user_support_email'];} ?>" placeholder="User support email" />
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3">Tech support email</label>
									<div class="col-md-4">
										<input name="tech_support_email" type="text" id="tech_support_email" class="form-control" data-required="1" value="<?php if(isset($_POST['tech_support_email'])) { echo htmlentities(($_POST['tech_support_email']), ENT_QUOTES); } else if(isset($setRec['tech_support_email']) && $setRec['tech_support_email']!=''){ echo $setRec['tech_support_email'];} ?>" placeholder="Tech support email" />
									</div>
								</div>
							</div>
							<div class="form-group">
								<div class="offset-md-3 col-md-9">
									<button type="submit" name="update_support" class="btn btn-info">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="notes" class="row">
			<div class="col-md-12 col-sm-12">
				<div class="card card-box">
					<div class="card-head"><header>Notes</header></div>
					<div class="card-body" id="bar-parent1">
						<form action="" id="form_note" class="form-horizontal" method="post">
							<div class="form-body">
								
								<div class="form-group row">
									<label class="control-label col-md-3 text-left">Task Notes</label>
									<div class="col-md-12">
										<textarea cols="40" rows="5" class="form-control"name="task_note" id="task_note" ><?php if(isset($_POST['task_note'])) { echo htmlentities(($_POST['task_note']), ENT_QUOTES); } else if(isset($setRec['task_note']) && $setRec['task_note']!=''){ echo $setRec['task_note'];} ?></textarea>
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3 text-left">Task Terms</label>
									<div class="col-md-12">
										<textarea cols="40" rows="5" class="form-control"name="task_terms" id="task_terms" ><?php if(isset($_POST['task_terms'])) { echo htmlentities(($_POST['task_terms']), ENT_QUOTES); } else if(isset($setRec['task_terms']) && $setRec['task_terms']!=''){ echo $setRec['task_terms'];} ?></textarea>
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3 text-left">Project Notes</label>
									<div class="col-md-12">
										<textarea cols="40" rows="5" class="form-control"name="project_category_note" id="project_category_note" ><?php if(isset($_POST['project_category_note'])) { echo htmlentities(($_POST['project_category_note']), ENT_QUOTES); } else if(isset($setRec['project_category_note']) && $setRec['project_category_note']!=''){ echo $setRec['project_category_note'];} ?></textarea>
									</div>
								</div>
								<div class="form-group row">
									<label class="control-label col-md-3 text-left">Project Terms</label>
									<div class="col-md-12">
										<textarea cols="40" rows="5" class="form-control"name="project_terms" id="project_terms" ><?php if(isset($_POST['project_terms'])) { echo htmlentities(($_POST['project_terms']), ENT_QUOTES); } else if(isset($setRec['project_terms']) && $setRec['project_terms']!=''){ echo $setRec['project_terms'];} ?></textarea>
									</div>
								</div>								
							</div>
							<div class="form-group">
								<div class="offset-md-3 col-md-9">
									<button type="submit" name="update_notes" class="btn btn-info">Update</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>