<?php
/**
 * Vcard tab
 *
 * @since  1.0.0
 *
 * @category  WordPress_Plugin
 * @package   QrCdr
 * @author    Nicola Franchini
 * @link      http://veno.es
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div data-qrcdr-section="vcard"  class="qrcdr-vcard tab-pane fade<?php echo esc_attr( $qrcdr_activesection ); ?>" id="qrcdr-vcard-<?php echo esc_attr( $form_id ); ?>" aria-labelledby="qrcdr-tab-vcard-<?php echo esc_attr( $form_id ); ?>">
	<h2 class="qrcdr-tab-title"><?php echo isset( $current_tab['label'] ) ? esc_html( $current_tab['label'] ) : ''; ?></h2>
	<div class="row">
		<div class="col-12 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vversion'] ); ?>
		</div>

		<div class="col-md-2 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vnametitle'] ); ?>
		</div>
		<div class="col-md-5 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vname'] ); ?>
		</div>
		<div class="col-md-5 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vlast'] ); ?>
		</div>

		<div class="col-md-6 form-group">
			<label><?php esc_html_e( 'Phone (home)', 'qrcdr' ); ?></label>
			<div class="row g-0">
				<div class="col-4">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['countrycodevphone'] ); ?>
				</div>
				<div class="col-8">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vphone'] ); ?>
				</div>
			</div>
		</div>

		<div class="col-md-6 form-group">
			<label><?php esc_html_e( 'Mobile', 'qrcdr' ); ?></label>
			<div class="row g-0">
				<div class="col-4">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['countrycodevmobile'] ); ?>
				</div>
				<div class="col-8">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vmobile'] ); ?>
				</div>
			</div>
		</div>

		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vemail'] ); ?>
		</div>

		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vurl'] ); ?>
		</div>

		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vcompany'] ); ?>
		</div>

		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vtitle'] ); ?>
		</div>

		<div class="col-md-6 orm-group">
			<label><?php esc_html_e( 'Phone (office)', 'qrcdr' ); ?></label>
			<div class="row g-0">
				<div class="col-4">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['countrycodevoffice'] ); ?>
				</div>
				<div class="col-8">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vofficephone'] ); ?>
				</div>
			</div>
		</div>

		<div class="col-md-6 form-group">
			<label><?php esc_html_e( 'Fax', 'qrcdr' ); ?></label>
			<div class="row g-0">
				<div class="col-4">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['countrycodevfax'] ); ?>
				</div>
				
				<div class="col-8">
					<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vfax'] ); ?>
				</div>
			</div>
		</div>

		<div class="col-12 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vaddress'] ); ?>
		</div>
		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vcap'] ); ?>
		</div>
		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vcity'] ); ?>
		</div>
		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vstate'] ); ?>
		</div>
		<div class="col-md-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['vcountry'] ); ?>
		</div>
	</div>
</div>
