
<div class="row">
	<div class="col-md-6">
		<form action="<?= base_url("admin/vcards/create_vcard"); ?>" method="POST" class="submitForm">
			<!-- csrf token -->
			<input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>">
			<div class="card">
				<div class="card-body">
					<div class="row">
						<div class="form-group col-md-12">
							<label><?= lang('choose_your_unique_link'); ?></label>
							<div class="chooseUsername">
								<span><?=  base_url();?></span>
								<input type="text" name="username" id="username" class="form-control fw_bold" placeholder="your username" value="<?= isset($data['username'])?$data['username']:"" ;?>">
							</div>
							<span class="alert_msg admin"></span>
						</div>
					</div>
				</div>
				<?php if(isset($_GET['p']) && $_GET['p']==1): ?>
					<div class="card-footer text-right">
						<input type="hidden" name="id" value="<?= isset($data['id'])?$data['id']:0 ;?>">
						<button name="submit" type="submit" class="btn btn-secondary submitBtn"><?= lang('next'); ?> <i class="icofont-double-right"></i></button>
					</div>
				<?php else: ?>
					<div class="card-footer text-right">
						<input type="hidden" name="id" value="<?= isset($data['id'])?$data['id']:0 ;?>">
						<button name="submit" type="submit" class="btn btn-secondary submitBtn" disabled><?= lang('next'); ?> <i class="icofont-double-right"></i></button>
					</div>
				<?php endif;?>
			</div>
		</form>
	</div><!-- col-8 -->
	<div class="col-md-4 col-md-offset-2">
		<?php if(isset($data['is_payment']) && $data['is_payment']==1): ?>
			<div class="iframe_area">
				<iframe src="<?= base_url($data['username']);?>" frameborder="0" style="width: 360px;height: 650px;"></iframe> 
			</div>
		<?php endif ?>
	</div>
</div>


