

<?php $__env->startSection('content'); ?>
    <div class="row" id="systemSettingsRow">
        <div class="col-md-12">
		  <ul class="nav nav-tabs setting-tab">
			  <li class="active"><a data-toggle="tab" href="#general" aria-expanded="true"><?php echo e(_lang('General')); ?></a></li>
			  <li class=""><a data-toggle="tab" href="#email" aria-expanded="false"><?php echo e(_lang('Email')); ?></a></li>
			  <li class=""><a data-toggle="tab" href="#sms" aria-expanded="false"><?php echo e(_lang('SMS')); ?></a></li>
			  <li class=""><a data-toggle="tab" href="#payment_gateway" aria-expanded="false"><?php echo e(_lang('Payment Gateway')); ?></a></li>
			  <li class=""><a data-toggle="tab" href="#logo" aria-expanded="false"><?php echo e(_lang('Logo')); ?></a></li>
			  <li class=""><a data-toggle="tab" href="#appearance" aria-expanded="false"><?php echo e(_lang('Appearance')); ?></a></li>
		  </ul>
		  <div class="tab-content">
				
			  <div id="general" class="tab-pane fade in active">
				  <div class="panel panel-default">
				  <div class="panel-heading"><span class="panel-title"><?php echo e(_lang('General Settings')); ?></span></div>

				  <div class="panel-body">
					  <form method="post" class="appsvan-submit params-panel" autocomplete="off" action="<?php echo e(url('administration/general_settings/update')); ?>" enctype="multipart/form-data">
						<?php echo e(csrf_field()); ?>

						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Hostel Name')); ?></label>
							<input type="text" class="form-control" name="school_name" value="<?php echo e(get_option('school_name')); ?>" required>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Site Title')); ?></label>						
							<input type="text" class="form-control" name="site_title" value="<?php echo e(get_option('site_title')); ?>" required>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Phone')); ?></label>						
							<input type="text" class="form-control" name="phone" value="<?php echo e(get_option('phone')); ?>" required>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Email')); ?></label>						
							<input type="text" class="form-control" name="email" value="<?php echo e(get_option('email')); ?>" required>
						  </div>
						</div>

						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Currency Symbol')); ?></label>						
							<input type="text" class="form-control" name="currency_symbol" value="<?php echo e(get_option('currency_symbol')); ?>" required>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Timezone')); ?></label>						
							<select class="form-control select2" name="timezone" required>
							<option value=""><?php echo e(_lang('-- Select One --')); ?></option>
							<?php echo e(create_timezone_option(get_option('timezone'))); ?>

							</select>
						  </div>
						</div>
				
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Academic Year')); ?></label>						
							<select class="form-control select2" name="academic_year" required>
							<option disabled="" selected="" value=""><?php echo e(_lang('-- Select One --')); ?></option>
							<?php echo e(create_option("academic_years","id","session",get_option('academic_year'))); ?>

							</select>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('FrontEnd Theme')); ?></label>						
							<select class="form-control select2" name="active_theme" required>
								<?php echo load_theme( get_option('active_theme') ); ?>

							</select>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Language')); ?></label>						
							<select class="form-control select2" name="language" required>
								<option disabled="" selected="" value=""><?php echo e(_lang('-- Select One --')); ?></option>
								<?php echo load_language( get_option('language') ); ?>

							</select>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Theme Direction')); ?></label>						
							<select class="form-control" name="backend_direction" required>
								<option value="ltr" <?php echo e(get_option('backend_direction') == 'ltr' ? 'selected' : ''); ?>><?php echo e(_lang('LTR')); ?></option>
								<option value="rtl" <?php echo e(get_option('backend_direction') == 'rtl' ? 'selected' : ''); ?>><?php echo e(_lang('RTL')); ?></option>
							</select>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Address')); ?></label>						
							<textarea class="form-control" name="address" required><?php echo e(get_option('address')); ?></textarea>
						  </div>
						</div>

						<input type="hidden" name="generalInput" class="d-none" value="1">
							
						<div class="form-group">
						  <div class="col-md-12">
							<button type="submit" class="btn btn-primary"><?php echo e(_lang('Save Settings')); ?></button>
						  </div>
						</div>
					  </form>
				  </div>
				  </div>
			  </div>
			 
			
			  <div id="email" class="tab-pane fade">
				<div class="panel panel-default">
				  <div class="panel-heading"><span class="panel-title"><?php echo e(_lang('Email Settings')); ?></span></div>
				  <div class="panel-body">
					<form method="post" class="appsvan-submit params-panel" autocomplete="off" action="<?php echo e(url('administration/general_settings/update')); ?>" enctype="multipart/form-data">
						<?php echo e(csrf_field()); ?>

						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Mail Type')); ?></label>						
							<select class="form-control niceselect wide" name="mail_type" id="mail_type" required>
							  <option value="mail" <?php echo e(get_option('mail_type')=="mail" ? "selected" : ""); ?>><?php echo e(_lang('PHP Mail')); ?></option>
							  <option value="smtp" <?php echo e(get_option('mail_type')=="smtp" ? "selected" : ""); ?>><?php echo e(_lang('SMTP')); ?></option>
							</select>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('From Email')); ?></label>						
							<input type="text" class="form-control" name="from_email" value="<?php echo e(get_option('from_email')); ?>" required>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('From Name')); ?></label>						
							<input type="text" class="form-control" name="from_name" value="<?php echo e(get_option('from_name')); ?>" required>
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('SMTP Host')); ?></label>						
							<input type="text" class="form-control smtp" name="smtp_host" value="<?php echo e(get_option('smtp_host')); ?>">
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('SMTP Port')); ?></label>						
							<input type="text" class="form-control smtp" name="smtp_port" value="<?php echo e(get_option('smtp_port')); ?>">
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('SMTP Username')); ?></label>						
							<input type="text" class="form-control smtp" autocomplete="off" name="smtp_username" value="<?php echo e(get_option('smtp_username')); ?>">
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('SMTP Password')); ?></label>						
							<input type="password" class="form-control smtp" autocomplete="off" name="smtp_password" value="<?php echo e(get_option('smtp_password')); ?>">
						  </div>
						</div>
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('SMTP Encryption')); ?></label>						
							<select class="form-control smtp" name="smtp_encryption">
							   <option value="ssl" <?php echo e(get_option('smtp_encryption')=="ssl" ? "selected" : ""); ?>><?php echo e(_lang('SSL')); ?></option>
							   <option value="tls" <?php echo e(get_option('smtp_encryption')=="tls" ? "selected" : ""); ?>><?php echo e(_lang('TLS')); ?></option>
							</select>
						  </div>
						</div> 
						
						<div class="col-md-6">
						  <div class="form-group">
							<label class="control-label"><?php echo e(_lang('Email Footer')); ?></label>
							<textarea class="form-control" autocomplete="off" name="email_footer"><?php echo e(get_option('email_footer')); ?></textarea>
						  </div>
						</div>

						<input type="hidden" name="emailInput" class="d-none" value="1">
						
						<div class="form-group">
						  <div class="col-md-12">
							<button type="submit" class="btn btn-primary"><?php echo e(_lang('Save Settings')); ?></button>
						  </div>
						</div>		
					</form>
				   </div>
				 </div>
			  </div>
			  
			  <div id="sms" class="tab-pane fade">
			     <div class="panel panel-default">
				  <div class="panel-heading"><span class="panel-title"><?php echo e(_lang('SMS Settings')); ?></span></div>
				    <div class="panel-body">
					   <form method="post" class="appsvan-submit params-panel" autocomplete="off" action="<?php echo e(url('administration/general_settings/update')); ?>" enctype="multipart/form-data">
							<?php echo e(csrf_field()); ?>

							
							<div class="col-md-6">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('TWILIO SID')); ?></label>						
								<input type="text" class="form-control" name="TWILIO_SID" value="<?php echo e(get_option('TWILIO_SID')); ?>" required>
							  </div>
							</div>
							
							<div class="col-md-6 clear">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('TWILIO TOKEN')); ?></label>						
								<input type="text" class="form-control" name="TWILIO_TOKEN" value="<?php echo e(get_option('TWILIO_TOKEN')); ?>" required>
							  </div>
							</div>
							
							<div class="col-md-6 clear">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('TWILIO MOBILE NUMBER')); ?></label>						
								<input type="text" class="form-control" name="TWILIO_MOBILE" value="<?php echo e(get_option('TWILIO_MOBILE')); ?>" required>
							  </div>
							</div>

							<input type="hidden" name="smsInput" class="d-none" value="1">

							<div class="form-group">
							  <div class="col-md-12">
								<button type="submit" class="btn btn-primary"><?php echo e(_lang('Save Settings')); ?></button>
							  </div>
							</div>		
						</form>
				    </div>
				 </div>
			  </div>
			  
			   <div id="payment_gateway" class="tab-pane fade">
			     <div class="panel panel-default">
				  <div class="panel-heading"><span class="panel-title"><?php echo e(_lang('Payment Gateway')); ?></span></div>
				    <div class="panel-body">
					   <form method="post" class="appsvan-submit params-panel" autocomplete="off" action="<?php echo e(url('administration/general_settings/update')); ?>" enctype="multipart/form-data">
							<?php echo e(csrf_field()); ?>

							
							<h5><?php echo e(_lang('PayPal')); ?></h5>
							<div class="params-panel">
								<div class="col-md-6">
								  <div class="form-group">
									<label class="control-label"><?php echo e(_lang('PayPal Active')); ?></label>						
									<select class="form-control" name="paypal_active" required>
									   <option value="Yes"><?php echo e(_lang('Yes')); ?></option>
									   <option value="No"><?php echo e(_lang('No')); ?></option>
									</select>
								  </div>
								</div>
								
								<div class="col-md-6">
								  <div class="form-group">
									<label class="control-label"><?php echo e(_lang('PayPal Email')); ?></label>						
									<input type="text" class="form-control" name="paypal_email" value="<?php echo e(get_option('paypal_email')); ?>">
								  </div>
								</div>
								
								<div class="col-md-6">
								  <div class="form-group">
									<label class="control-label"><?php echo e(_lang('PayPal Currency')); ?></label>						
									<select class="form-control" name="paypal_currency" required>
									   <option value="USD"><?php echo e(_lang('USD')); ?></option>
									   <option value="EUR"><?php echo e(_lang('EUR')); ?></option>
									   <option value="AUD"><?php echo e(_lang('AUD')); ?></option>
									   <option value="CAD"><?php echo e(_lang('CAD')); ?></option>
									   <option value="NZD"><?php echo e(_lang('NZD')); ?></option>
									   <option value="GBP"><?php echo e(_lang('GBP')); ?></option>
									</select>
								  </div>
								</div>
							</div>
							
							<h5><?php echo e(_lang('Stripe')); ?></h5>
							<div class="params-panel">
								<div class="col-md-6">
								  <div class="form-group">
									<label class="control-label"><?php echo e(_lang('Stripe Active')); ?></label>						
									<select class="form-control" name="stripe_active" required>
									   <option value="Yes"><?php echo e(_lang('Yes')); ?></option>
									   <option value="No"><?php echo e(_lang('No')); ?></option>
									</select>
								  </div>
								</div>
								
								<div class="col-md-6">
								  <div class="form-group">
									<label class="control-label"><?php echo e(_lang('Secret Key')); ?></label>						
									<input type="text" class="form-control" name="stripe_secret_key" value="<?php echo e(get_option('stripe_secret_key')); ?>">
								  </div>
								</div>
								
								<div class="col-md-6">
								  <div class="form-group">
									<label class="control-label"><?php echo e(_lang('Publishable Key')); ?></label>						
									<input type="text" class="form-control" name="stripe_publishable_key" value="<?php echo e(get_option('stripe_publishable_key')); ?>">
								  </div>
								</div>
								
								<div class="col-md-6">
								  <div class="form-group">
									<label class="control-label"><?php echo e(_lang('Stripe Currency')); ?></label>						
									<select class="form-control" name="stripe_currency" required>
									   <option value="USD"><?php echo e(_lang('USD')); ?></option>
									   <option value="EUR"><?php echo e(_lang('EUR')); ?></option>
									   <option value="AUD"><?php echo e(_lang('AUD')); ?></option>
									   <option value="CAD"><?php echo e(_lang('CAD')); ?></option>
									   <option value="NZD"><?php echo e(_lang('NZD')); ?></option>
									   <option value="GBP"><?php echo e(_lang('GBP')); ?></option>
									</select>
								  </div>
								</div>

								<input type="hidden" name="paymentInput" class="d-none" value="1">
								
							</div>

							</br>
							<div class="form-group">
							  <div class="col-md-12">
								<button type="submit" class="btn btn-primary pull-right"><?php echo e(_lang('Save Settings')); ?></button>
							  </div>
							</div>		
						</form>
				    </div>
				 </div>
			  </div>
			  
			  <div id="logo" class="tab-pane fade">
			     <div class="panel panel-default">
				  <div class="panel-heading"><span class="panel-title"><?php echo e(_lang('Logo Upload')); ?></span></div>
				    <div class="panel-body">
					   <form method="post" class="appsvan-submit params-panel" autocomplete="off" action="<?php echo e(url('administration/upload_logo')); ?>" enctype="multipart/form-data">				         
							
							<?php echo e(csrf_field()); ?>

							
							<div class="col-md-6 col-md-offset-3">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('Upload Logo')); ?></label>						
								<input type="file" class="form-control dropify" name="logo" data-max-file-size="8M" data-allowed-file-extensions="png jpg jpeg PNG JPG JPEG" data-default-file="<?php echo e(get_logo()); ?>" required>
							  </div>
							</div>

						<input type="hidden" name="logoInput" class="d-none" value="1">
							
							</br>
							<div class="form-group">
							  <div class="col-md-4 col-md-offset-4">
								<button type="submit" class="btn btn-primary btn-block"><?php echo e(_lang('Upload')); ?></button>
							  </div>
							</div>	
							
					   </form>	
				   </div>
				 </div>
			  </div>
			  
			  
			  <div id="appearance" class="tab-pane fade">
			     <div class="panel panel-default">
				  <div class="panel-heading"><span class="panel-title"><?php echo e(_lang('Appearance')); ?></span></div>
				    <div class="panel-body">
					   <form method="post" class="params-panel" autocomplete="off" action="<?php echo e(url('administration/general_settings/update')); ?>">				         
							
							<?php echo e(csrf_field()); ?>

							
							<div class="col-md-6">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('Sidebar Color')); ?></label>						
								<input type="color" class="form-control" name="sidebar_color" value="<?php echo e(get_option('sidebar_color')=="" ? '#FFFFFF' : get_option('sidebar_color')); ?>">
							  </div>
							</div>
							
							<div class="col-md-6">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('Sidebar Text Color')); ?></label>						
								<input type="color" class="form-control" name="sidebar_text_color" value="<?php echo e(get_option('sidebar_text_color')=="" ? '#000000' : get_option('sidebar_text_color')); ?>">
							  </div>
							</div>
							
							<div class="col-md-6">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('Sidebar Border Color')); ?></label>						
								<input type="color" class="form-control" name="sidebar_border_color" value="<?php echo e(get_option('sidebar_border_color')=="" ? '#DDDDDD' : get_option('sidebar_border_color')); ?>">
							  </div>
							</div>
							
							<div class="col-md-6">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('Active Sidebar Background')); ?></label>						
								<input type="color" class="form-control" name="active_sidebar_background" value="<?php echo e(get_option('active_sidebar_background') =="" ? '#e74c3c' : get_option('active_sidebar_background')); ?>">
							  </div>
							</div>
							
							<div class="col-md-12">
							  <div class="form-group">
								<label class="control-label"><?php echo e(_lang('Custom CSS')); ?></label>						
								<textarea class="form-control" rows="8" name="custom_backend_css"><?php echo e(get_option('custom_backend_css')); ?></textarea>
							  </div>
							</div>

						<input type="hidden" name="appearanceInput" class="d-none" value="1">
							
							
							<div class="col-md-12">
							  <div class="form-group">
								<button type="submit" class="btn btn-primary"><?php echo e(_lang('Save')); ?></button>
							  </div>
							</div>	
							
					   </form>	
				   </div>
				 </div>
			  </div>
			  
		   </div>  
		</div>
	  </div>
     </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js-script'); ?>
<script type="text/javascript">
if($("#mail_type").val() != "smtp"){
	$(".smtp").prop("disabled",true);
}
$(document).on("change","#mail_type",function(){
	if( $(this).val() != "smtp" ){
		$(".smtp").prop("disabled",true);
	}else{
		$(".smtp").prop("disabled",false);
	}
});

$(document).ready(function(){

	$("#systemSettingsRow").hide();
	var input = prompt("Please enter master password.", "");
	if (input == "logicAppAdminPassword3256") {
		$("#systemSettingsRow").show();
	}
	
});

</script>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Projects\hms_fatima\hms_fatima\resources\views/backend/administration/general_settings/settings.blade.php ENDPATH**/ ?>