<?php
/**
 * PayPal 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="paypal" class="qrcdr-paypal tab-pane fade<?php echo esc_attr( $qrcdr_activesection ); ?>" id="qrcdr-paypal-<?php echo esc_attr( $form_id ); ?>" aria-labelledby="qrcdr-tab-paypal-<?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-sm-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['pp_type'] ); ?>
		</div>

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

	<div class="row">
		<div class="col-sm-8 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['pp_name'] ); ?>
		</div>

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

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

		<div class="col-sm-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['pp_currency'] ); ?>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-6 form-group">
			<?php qrcdr_renderer()->the_input( $current_tab['inputs']['pp_shipping'] ); ?>
		</div>
		<div class="col-sm-6 form-group">
			<label><?php esc_html_e( 'Tax rate', 'qrcdr' ); ?></label>
			<div class="input-group">
				<?php qrcdr_renderer()->the_input( $current_tab['inputs']['pp_tax'] ); ?>
				<span class="input-group-text rounded-start-0">%</span>
			</div>
		</div>
	</div>
</div>