<?php if ( ! defined( 'ABSPATH' ) ) {
exit;} ?>
<div class="row justify-content-center">

				<div class="col-xl-6 col-lg-8 col-md-10  py-2 pt-5">
					<form action="">
						


						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'Store Name', 'elex-multi-vendor-for-woocommerce' ); ?><span class=" text-danger asterisk">*</span></label>
							<input type="text" name="store_url" class="form-control" id="elex-vendor-onboard-store-url" value="<?php echo ! empty( $vendor_settings->get_title() ) ? esc_html( $vendor_settings->get_title() ) : ''; ?>">
						</div>
						<div>
							<input type="text" name="status" class="form-control" id="elex-vendor-onboard-status" hidden value="<?php echo ! empty( $vendor_settings->get_status() ) ? esc_html( $vendor_settings->get_status() ) : '' ; ?>">

						</div>
					
						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'Country', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<select type="text" name="country" class="form-control border-2 border-secondary" id="elex-vendor-onboard-country" >
										<option value="">--Choose Country-- </option>

										<?php 
											$wc_countries = new \WC_Countries();
											$countries    = $wc_countries->get_countries();
										foreach ( $countries  as $country_code => $country_name ) :
											?>
										<option value="<?php echo esc_html( $country_code ); ?>"  
																	<?php 
																	if ( $country_code === $vendor_settings->get_country() ) {
																	echo 'selected'; } 
																	?>
										><?php echo esc_html( $country_name ); ?></option>
										<?php endforeach ; ?>
										</select>
						</div>
					

						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'State / County', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<select type="text" name="state" class="form-control" id="elex-vendor-onboard-state" value="<?php echo ! empty( $vendor_settings->get_state() ) ? esc_html( $vendor_settings->get_state() ) : '' ; ?>"></select>
						</div>

						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'City', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<input type="text" name="city" class="form-control" id="elex-vendor-onboard-city" value="<?php echo ! empty( $vendor_settings->get_city() ) ? esc_html( $vendor_settings->get_city() ) : '' ; ?>">
						</div>

						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'Postcode / Zip', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<input type="text" name="postal_code" class="form-control" id="elex-vendor-onboard-postal"  value = "<?php echo ! empty( $vendor_settings->get_postal_code() ) ? esc_html( $vendor_settings->get_postal_code() ) : '' ; ?>">
						</div>
						

						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'Address 1', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<input type="text" name="store_full_addr1" class="form-control" id="elex-vendor-onboard-store-full-addr" value="<?php echo ! empty( $vendor_settings->get_address1() ) ? esc_html( $vendor_settings->get_address1() ) : ''; ?>">
						</div>

						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'Address 2', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<input type="text" name="store_full_addr2" class="form-control" id="elex-vendor-onboard-store-full-addr" value="<?php echo ! empty( $vendor_settings->get_address1() ) ? esc_html( $vendor_settings->get_address2() ) : ''; ?>">
						</div>


						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'Email', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<input type="text" name="email" class="form-control" id="elex-vendor-onboard-email"  value = "<?php echo ! empty( $vendor_settings->get_email() ) ? esc_html( $vendor_settings->get_email() ) : '' ; ?>">
						</div>

						<div class="mb-3">
							<label for=""><?php echo esc_html__( 'Phone Number', 'elex-multi-vendor-for-woocommerce' ); ?></label>
							<input type="text" name="phone_number" class="form-control" id="elex-vendor-onboard-number" value="<?php echo ! empty( $vendor_settings->get_phone_number() ) ? esc_html( $vendor_settings->get_phone_number() ) : ''; ?>">
							<input type="hidden" name="dial_code" class="form-control" id="elex-vendor-onboard-dial_code" value="<?php echo ! empty( $vendor_settings->get_dial_code() ) ? esc_html( $vendor_settings->get_dial_code() ) : ''; ?>">
							<input type="hidden" name="country_iso" class="form-control" id="elex-vendor-onboard-country_iso" value="<?php echo ! empty( $vendor_settings->get_country_iso() ) ? esc_html( $vendor_settings->get_country_iso() ) : ''; ?>">

						</div>
							<div class="d-flex gap-2 mt-5">


							<button class="btn btn-primary flex-fill elex-multi-vendor-for-woocommerce-confirm-vendor-setup-btn" data-id="1" type="button"><?php echo esc_html__( 'Confirm', 'elex-multi-vendor-for-woocommerce' ); ?></button>
								
						</div>
					</form>
				</div>
			</div>
