<div class="row">
	<?php include 'inc/leftsidebar.php'; ?>
	<form class="email_setting_form" action="<?= base_url('admin/dashboard/add_recaptcha');?>" method="post" enctype= "multipart/form-data" autocomplete="off">
		<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>" autocomplete="off">
		<div class="col-md-8">
			<div class="card">
				<div class="card-body">
					<div class="row">
						<div class="col-md-12">
							<h4><?= !empty(lang('turn_on_recaptcha'))?lang('turn_on_recaptcha'):"Turn on recaptcha when it works here";?></h4>
						</div>
						<div class="form-group  col-md-6 col-sm-6 col-xs-6">
							<label for=""><?= !empty(lang('status'))?lang('status'):"Status";?></label>
							<div class="">
								<input type="checkbox" name="is_recaptcha" class="setting_option"  data-type="is_recaptcha" data-value="<?= check_setting_value('is_recaptcha'); ?>" value="1"  <?= isset($settings['is_recaptcha']) && $settings['is_recaptcha']==1?'checked':'';?> data-toggle="toggle" data-on="<i class='fa fa-check'></i> Active" data-off="<i class='fa fa-pause'></i> Off">
								
							</div>
						</div>
						<?php if(isset($settings['is_recaptcha']) && $settings['is_recaptcha']==1): ?>
							<div class="col-md-6">
								<div class="g-recaptcha" data-sitekey="<?= !empty($settings['g_site_key'])?$settings['g_site_key']:"";?>">
									
								</div>
							</div>
						<?php endif; ?>
						<div class="col-md-12">
							<div class="form-group">
								<label class=""><?= !empty(lang('site_key'))?lang('site_key'):"Site Key";?></label>
								<div class="">
									<input type="text" name="g_site_key" placeholder="<?= !empty(lang('site_key'))?lang('site_key'):"Site Key";?>" class="form-control" value="<?= !empty($settings['g_site_key'])?html_escape($settings['g_site_key']):'';  ?>">
									<span class="error"><?= form_error('g_site_key'); ?></span>
								</div>
							</div>
						</div>

						<div class="col-md-12">
							<div class="form-group">
								<label class=""><?= !empty(lang('secret_key'))?lang('secret_key'):"secret Key";?></label>
								<div class="">
									<input type="text" name="g_secret_key" placeholder="<?= !empty(lang('secret_key'))?lang('secret_key'):"secret Key";?>" class="form-control" value="<?= !empty($settings['g_secret_key'])?html_escape($settings['g_secret_key']):'';  ?>">
									<span class="error"><?= form_error('g_secret_key'); ?></span>
								</div>
							</div>
						</div>
						
					</div><!-- card-body -->
					<div class="card-footer">
						<input type="hidden" name="id" value="<?= isset($settings['id'])?html_escape($settings['id']):0; ?>">
						<button type="submit" class="btn btn-primary btn-block"><i class="fa fa-save"></i> &nbsp;<?= !empty(lang('save_change'))?lang('save_change'):"Save Change";?></button>
					</div>
				</div><!-- card -->
			</div><!-- col-9 -->
		</form>
	</div>
