<div class="row">
	<div class="col-lg-6">
		<?php include 'vcard_info.php'; ?>
	</div>
</div>
<div class="row">
	<div class="col-md-6">
		<form action="<?= base_url('admin/vcards/add_vcard_settings') ;?>" method="post" class="validForm" enctype= "multipart/form-data">
			<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
			<?php $vcard = json_decode(!empty($settings['vcard_settings'])?$settings['vcard_settings']:''); ?>
			<div class="card">
				<div class="card-header">
					<h4><?= lang('settings');?></h4>
				</div>
				<div class="card-body">
					<div class="form-group">
						<label for=""><?= lang('hide_vcard_value');?></label>
						<div class="mt-10">
							<label class="custom-radio mr-5">
								<input type="radio" name="is_value" value="1" checked <?= isset($vcard->is_value) && $vcard->is_value==1?"checked":"";?>> <?= lang('show');?>
							</label>

							<label class="custom-radio ">
								<input type="radio" name="is_value" value="0" <?= isset($vcard->is_value) && $vcard->is_value==0?"checked":"";?>> <?= lang('hide');?>
							</label> &nbsp; &nbsp;
							
						</div>
					</div>

					<div class="form-group mt-20">
						<label for=""><?= lang('turn_on_vcard_click');?></label>
						<div class="mt-10">
							<label class="custom-radio mr-5">
								<input type="radio" name="is_clickable" value="1" checked <?= isset($vcard->is_clickable) && $vcard->is_clickable==1?"checked":"";?>> <?= lang('on');?>
							</label>&nbsp; &nbsp;

							<label class="custom-radio ">
								<input type="radio" name="is_clickable" value="0" <?= isset($vcard->is_clickable) && $vcard->is_clickable==0?"checked":"";?>> <?= lang('off');?>
							</label> 
							
						</div>
					</div>
					<hr>
					<div class="form-group mt-20">
						<div class="mt-10">
							<div >
								<label><?= lang('share_this_key');?> &nbsp;<a href="https://sharethis.com/" target="blank" data-toggle="tooltip" data-title="<?= !empty(lang('click_here'))?lang('click_here'):"Click Here"; ?>"><i class="fa fa-question-circle"></i></a></label>
								<input type="text" name="share_this_key" class="form-control" value="<?= isset($vcard->share_this_key) && !empty($vcard->share_this_key)?$vcard->share_this_key:"";?>" placeholder="<?= lang('share_this_key');?>">
							</div>
							<div class="mt-10">
								<label class="custom-radio mr-5">
									<input type="radio" name="is_share_this" value="1" checked <?= isset($vcard->is_share_this) && $vcard->is_share_this==1?"checked":"";?>> <?= lang('on');?>
								</label>&nbsp; &nbsp;

								<label class="custom-radio ">
									<input type="radio" name="is_share_this" value="0" <?= isset($vcard->is_share_this) && $vcard->is_share_this==0?"checked":"";?>> <?= lang('off');?>
								</label>
							</div> 
							
						</div>
					</div>
				</div>
				<div class="card-footer d-flex space-between">
					<input type="hidden" name="id" value="<?= isset($settings['id']) && !empty($settings['id'])?$settings['id']:0 ;?>">
					<input type="hidden" name="user_id" value="<?= isset($data['id']) && !empty($data['id'])?$data['id']:0 ;?>">
					<button type="submit" class="btn btn-default"><?= lang('cancel');?></button>
					<button type="submit" class="btn btn-secondary"><?= lang('submit');?></button>
				</div>
			</div><!-- card -->
		</form>
	</div>
</div>