<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">Configuration</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>General <i class="fa fa-angle-right"></i></li>
					<li>Configuration</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>Configuration</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">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 class="form-group row">
									 <label class="control-label col-md-3">App Type<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <div class="radio radio-aqua" style="width: 155px; float: left;">
											 <input id="app_type_single" name="app_type" type="radio" value="single" <?php if(isset($_POST['app_type']) && $_POST['app_type']=='single'){ echo 'checked="checked"'; } else if(isset($setRec['app_type']) && $setRec['app_type']=='single'){ echo 'checked="checked"'; }?> >
											 <label for="app_type_single"> Single category </label>
										 </div>
	                                     <div class="radio radio-aqua">
											 <input id="app_type_multi" name="app_type" type="radio" value="multi" <?php if(isset($_POST['app_type']) && $_POST['app_type']=='multi'){ echo 'checked="checked"'; } else if(isset($setRec['app_type']) && $setRec['app_type']=='multi'){ echo 'checked="checked"'; }?> >
											 <label for="app_type_multi"> Multi category </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">SMS<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="sms_yes" name="sms" type="radio" value="yes" <?php if(isset($_POST['sms']) && $_POST['sms']=='yes'){ echo 'checked="checked"'; } else if(isset($setRec['sms']) && $setRec['sms']=='yes'){ echo 'checked="checked"'; }?> >
											 <label for="sms_yes"> Yes </label>
										 </div>
										 <div class="radio radio-aqua">
											 <input id="sms_no" name="sms" type="radio" value="no" <?php if(isset($_POST['sms']) && $_POST['sms']=='no'){ echo 'checked="checked"'; } else if(isset($setRec['sms']) && $setRec['sms']=='no'){ echo 'checked="checked"'; }?> >
											 <label for="sms_no"> No </label>
										 </div>
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Currency<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-6">
										 <input type="text" class="form-control" name="currency_name" id="currency_name" placeholder="Currency Name" style="float: left; width: 139px;" value="<?php if(isset($_POST['currency_name'])) { echo htmlentities(($_POST['currency_name']), ENT_QUOTES); } else if(isset($setRec['currency_name']) && $setRec['currency_name']!=''){ echo $setRec['currency_name'];} ?>" >
										 
										 <input type="text" class="form-control" name="currency_symbol" id="currency_symbol" placeholder="Symbol(optional)" style="float: left; margin-left: 10px; width: 151px;" value="<?php if(isset($_POST['currency_symbol'])) { echo htmlentities(($_POST['currency_symbol']), ENT_QUOTES); } else if(isset($setRec['currency_symbol']) && $setRec['currency_symbol']!=''){ echo $setRec['currency_symbol'];} ?>">
										
									 </div>
								 </div>
								 <div class="form-group row">
									 <label class="control-label col-md-3">Email Settings<span class="required"> * </span></label>
									 <div style="padding-top: 10px;" class="col-md-4">
										 <label for="smtp_server_name">SMTP Server Name</label>
										 <input type="text" class="form-control" name="smtp_server_name" id="smtp_server_name" placeholder="SMTP Server Name" value="<?php if(isset($_POST['smtp_server_name'])) { echo htmlentities(($_POST['smtp_server_name']), ENT_QUOTES); } else if(isset($setRec['smtp_server_name']) && $setRec['smtp_server_name']!=''){ echo $setRec['smtp_server_name'];} ?>" >
										 
										 <label for="smtp_port" class="mt-2">SMTP Port</label>
										 <input type="text" class="form-control" name="smtp_port" id="smtp_port" placeholder="SMTP Port"  value="<?php if(isset($_POST['smtp_port'])) { echo htmlentities(($_POST['smtp_port']), ENT_QUOTES); } else if(isset($setRec['smtp_port']) && $setRec['smtp_port']!=''){ echo $setRec['smtp_port'];} ?>">
										 
										 <label for="smtp_username" class="mt-2">SMTP Username</label>
										 <input type="text" class="form-control" name="smtp_username" id="smtp_username" placeholder="SMTP Username"  value="<?php if(isset($_POST['smtp_username'])) { echo htmlentities(($_POST['smtp_username']), ENT_QUOTES); } else if(isset($setRec['smtp_username']) && $setRec['smtp_username']!=''){ echo $setRec['smtp_username'];} ?>">
										 
										 <label for="smtp_password" class="mt-2">SMTP Password</label>
										 <input type="text" class="form-control" name="smtp_password" id="smtp_password" placeholder="SMTP Password"  value="<?php if(isset($_POST['smtp_password'])) { echo htmlentities(($_POST['smtp_password']), ENT_QUOTES); } else if(isset($setRec['smtp_password']) && $setRec['smtp_password']!=''){ echo $setRec['smtp_password'];} ?>">
										
									 </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>
</div>