<?php if ( ! defined( 'ABSPATH' ) ) {
exit;} ?>
<h3><?php esc_html_e( 'ELEX Vendor Address', 'elex-multi-vendor-for-woocommerce' ); ?></h3>

<table class="form-table">
	
	<tr>
		<th><?php esc_html_e( 'Store Name', 'elex-multi-vendor-for-woocommerce' ); ?> <span class="text-danger">*</span></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-store-name-vendor">
					<input id="elex-multi-vendor-for-woocommerce-store-name-vendor" type="text" name="elex-multi-vendor-for-woocommerce-store-name-vendor" class="regular-text" value="<?php echo esc_attr( get_user_meta( $user->ID, 'elex-multi-vendor-for-woocommerce-store-name-vendor', true ) ); ?>" />
				</label>
				<br />
		</td>
	</tr>

	<tr>
		<th><?php esc_html_e( 'Address Line 1', 'elex-multi-vendor-for-woocommerce' ); ?></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-address-one-vendor">
					<input id="elex-multi-vendor-for-woocommerce-address-one-vendor" type="text" name="elex-multi-vendor-for-woocommerce-address-one-vendor" value="<?php echo esc_attr( get_user_meta( $user->ID, 'elex-multi-vendor-for-woocommerce-address-one-vendor', true ) ); ?>" class="regular-text"/>
				</label>
				<br />
		</td>
	</tr>
	<tr>
		<th><?php esc_html_e( 'Address Line 2', 'elex-multi-vendor-for-woocommerce' ); ?></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-address-two-vendor">
					<input id="elex-multi-vendor-for-woocommerce-address-two-vendor" type="text" name="elex-multi-vendor-for-woocommerce-address-two-vendor" value="<?php echo esc_attr( get_user_meta( $user->ID, 'elex-multi-vendor-for-woocommerce-address-two-vendor', true ) ); ?>" class="regular-text" />
				</label>
				<br />
		</td>
	</tr>

	<tr>
		<th><?php esc_html_e( 'City', 'elex-multi-vendor-for-woocommerce' ); ?></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-city-vendor">
					<input id="elex-multi-vendor-for-woocommerce-city-vendor" type="text" name="elex-multi-vendor-for-woocommerce-city-vendor" class="regular-text" value="<?php echo esc_attr( get_user_meta( $user->ID, 'elex-multi-vendor-for-woocommerce-city-vendor', true ) ); ?>" />
				</label>
				<br />
		</td>
	</tr>
	<tr>
		<th><?php esc_html_e( 'Postcode / Zip', 'elex-multi-vendor-for-woocommerce' ); ?></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-post-code-vendor">
					<input id="elex-multi-vendor-for-woocommerce-post-code-vendor" type="text" name="elex-multi-vendor-for-woocommerce-post-code-vendor" value="<?php echo esc_attr( get_user_meta( $user->ID, 'elex-multi-vendor-for-woocommerce-post-code-vendor', true ) ); ?>" class="regular-text" />
				</label>
				<br />
		</td>
	</tr>
	<tr>
		<th><?php esc_html_e( 'Country / Region', 'elex-multi-vendor-for-woocommerce' ); ?></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-country-vendor">
					<select id="elex-multi-vendor-for-woocommerce-country-vendor" name="elex-multi-vendor-for-woocommerce-country-vendor" class="js_field-country">
					<?php 
					foreach ( WC()->countries->get_allowed_countries() as $c_id => $country ) {
						?>
						<option <?php echo ( get_user_meta( $user->ID, 'elex-multi-vendor-for-woocommerce-country-vendor', true ) === $c_id ) ? 'selected' : ''; ?> value="<?php echo esc_attr( $c_id ); ?>"><?php echo esc_attr( $country ); ?></option>
						<?php
					} 
					?>
					</select>
				</label>
				<br />
		</td>
	</tr>
	<tr>
		<th><?php esc_html_e( 'State / County', 'elex-multi-vendor-for-woocommerce' ); ?></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-state-vendor">
					<select id="elex-multi-vendor-for-woocommerce-state-vendor" name="elex-multi-vendor-for-woocommerce-state-vendor" class="js_field-state" > </select>
				</label>
				<br />
		</td>
	</tr>
	<tr>
		<th><?php esc_html_e( 'Phone', 'elex-multi-vendor-for-woocommerce' ); ?></th>
		<td>
	
				<label for="elex-multi-vendor-for-woocommerce-phone-vendor">
					<input id="elex-multi-vendor-for-woocommerce-phone-vendor" type="text" name="elex-multi-vendor-for-woocommerce-phone-vendor" value="<?php echo esc_attr( get_user_meta( $user->ID, 'elex-multi-vendor-for-woocommerce-phone-vendor', true ) ); ?>" class="regular-text" />
				</label>
				<br />
		</td>
	</tr>

	
	
</table>

