<?php if ( ! defined( 'ABSPATH' ) ) {
exit;} ?>


	<div class="elex-multi-vendor-for-woocommerce-wrap elex-multi-vendor-for-woocommerce-wrap-admin overflow-hidden d-flex">

		<!-- ======================main content============ -->
		<div class="elex-multi-vendor-for-woocommerce-main ps-2 flex-1">
			<!-- ===========side panel open button========= -->
			<div class="d-flex mb-3 gap-4 align-items-center elex-multi-vendor-for-woocommerce-side-panel-open-div d-md-none">
				<!-- side panel open button -->
				<button class=" btn p-1 shadow-none fs-5   bg-white text-primary position-relative " id="elex-multi-vendor-for-woocommerce-side-panel-open-btn"><svg height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"/></svg></button>
				<h5 class="m-0 ">Products</h5>
			</div>
			<div>
				<div class=" p-3 ">
				<form method="post">
				<?php
				wp_nonce_field( 'elex_mv_save_settings', 'elex_mv_settings_nonce' ); 
				?>
					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Enable Vendors to Sell Products without Approval</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="can_vendor_sell_products_without_approval" <?php echo esc_attr( ( 'on' === $elex_mv_options->can_vendor_sell_products_without_approval ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
						<div class="col">
							<small class="text-secondary">Allow Selling of New Product Without Approval</small>
						</div>

					</div>


					<!-- <div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow vendor to enable/disable shipping methods setup by Admin</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="allow_vendor_shipping" <?php echo esc_attr( ( 'on' === $elex_mv_options->allow_vendor_shipping ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
						<div class="col-xl-5">
							<small class="text-secondary">Allow vendor to enable/disable shipping methods setup by Admin</small>
						</div>
					</div> -->

					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow Vendor to Initiate Refund</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="allow_vendor_to_initiate_refund" <?php echo esc_attr( ( 'on' === $elex_mv_options->allow_vendor_to_initiate_refund ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
					
					</div>

<!-- 
					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow Vendor to Override Shipping Carrier Credentials</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="allow_vendor_override_credentials" <?php echo esc_attr( ( 'on' === $elex_mv_options->allow_vendor_override_credentials ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
					</div> -->

<!-- 
					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow Vendor to Choose Shipping Carrier Services</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="can_vendor_choose_shipping_services" <?php echo esc_attr( ( 'on' === $elex_mv_options->can_vendor_choose_shipping_services ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
					</div> -->
					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow Vendor to Create Product Categories</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="can_vendor_create_product_category" <?php echo esc_attr( ( 'on' === $elex_mv_options->can_vendor_create_product_category ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
					</div>


					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow Vendor to Use WooCommerce Shipping Setup by Admin</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="allow_vendor_flat_rate" <?php echo esc_attr( ( 'on' === $elex_mv_options->allow_vendor_flat_rate ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
					</div>


					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow Vendor to Change Order Status</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="can_vendor_change_order_status" <?php echo esc_attr( ( 'on' === $elex_mv_options->can_vendor_change_order_status ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
					</div>


					<div class="row mb-3">
						<div class="col-xl-4 col-md-5">
							<h6>Allow Vendor to Generate Coupons</h6>
						</div>
						<div class="col-xl-2 col-md-3">
							<label class="elex-enable-disable-switch">
								<input type="checkbox" name="allow_vendor_coupon"  <?php echo esc_attr( ( 'on' === $elex_mv_options->allow_vendor_coupon ) ? 'checked' : '' ); ?>/>
								<div class="switch round"></div>
							</label>
						</div>
					</div>

					<div class="my-4">
						<button type="submit" name="submit" id="submit" class="btn btn-sm btn-primary" value=""><?php echo esc_attr__( 'Save Changes', 'elex-multi-vendor-for-woocommerce' ); ?></button>
					</div>


				</form>
				</div>
			</div>
			<!-----------------------------===============popup=========--------------------->
		</div>
	</div>

