<?php if ( ! defined( 'ABSPATH' ) ) {
exit;} ?>
<!-- main content top 2nd link section -->

<?php
	$search_term = get_query_var( 'search_term', '' );
	

?>
<div class="d-flex flex-wrap justify-content-between align-items-center">
		<div class="flex-1">
			<div class="d-flex flex-wrap mb-3 gap-3">
				<div class="elex-multi-vendor-for-woocommerce-front-product-category-nav">
					<ul class="nav nav-pills nav-fill btn-sm p-1 border border-primary border-2 rounded-3 m-0">
						<li class="nav-item mb-0">

						<a id="elex-multi-vendor-for-woocommerce-product-btn" class="nav-link py-1 <?php ( 'product' === get_query_var( 'tab', 'product' ) ) ? esc_html_e( 'active' , 'elex-multi-vendor-for-woocommerce' ) : ''; ?>" aria-current="page" href="<?php echo esc_url( add_query_arg( 'tab', 'product' ) ); ?>"">Products</a>
						</li>
						<li class="nav-item mb-0">
							<a id="elex-multi-vendor-for-woocommerce-categories-btn" class="nav-link py-1 <?php ( 'categories' === get_query_var( 'tab', 'product' ) ) ? esc_html_e( 'active' , 'elex-multi-vendor-for-woocommerce' ) : ''; ?>" href="<?php echo esc_url( add_query_arg( 'tab', 'categories' ) ); ?>">Categories</a>
						</li>
					</ul>
				</div>
				<div class="elex-multi-vendor-for-woocommerce-front-product-category-search">
					<div class="input-group border border-1 rounded-3 h-100">
						<input value="<?php echo esc_attr( $search_term ); ?>" type="text" placeholder="Search Product" class="form-control border-0 p-2 h-100" id='elex-search-product-vendor' >
						<?php 
						if ( $search_term ) {
							?>
								<button class="input-group-text  bg-transparent border-0" id='elex-search-product-vendor-button-cross' ><svg xmlns="http://www.w3.org/2000/svg" id="Outline" viewBox="0 0 24 24" width="16" height="16" style="stroke-width:1;stroke:#000"><path d="M23.707.293h0a1,1,0,0,0-1.414,0L12,10.586,1.707.293a1,1,0,0,0-1.414,0h0a1,1,0,0,0,0,1.414L10.586,12,.293,22.293a1,1,0,0,0,0,1.414h0a1,1,0,0,0,1.414,0L12,13.414,22.293,23.707a1,1,0,0,0,1.414,0h0a1,1,0,0,0,0-1.414L13.414,12,23.707,1.707A1,1,0,0,0,23.707.293Z"/></svg></button>

							<?php
						}
						
						?>
						<button class="input-group-text border-0" id='elex-search-product-vendor-button'><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg></button>
					</div>
				</div>
			</div>

		</div>

		<div class="toast p-2 position-fixed top-0 start-50 translate-middle-x bg-white mt-4" id="elex_msging_for_bulk_action_vendor">
			<div class="toast-header border-0 ">
				<strong class="me-auto">
					<svg xmlns="http://www.w3.org/2000/svg" width="22.415" height="22.026" viewBox="0 0 22.415 22.026" class="me-2">
						<g id="Icon_feather-check-circle" data-name="Icon feather-check-circle" transform="translate(-1.998 -1.979)">
							<path id="Path_646" data-name="Path 646" d="M23,12.076V13a10,10,0,1,1-5.93-9.139" fill="none" stroke="#28a745" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
							<path id="Path_647" data-name="Path 647" d="M26.5,6l-10,10.009-3-3" transform="translate(-3.5 -1.003)" fill="none" stroke="#28a745" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
						</g>
						</svg>
					<span id = 'elex_msging_for_bulk_action_vendor_msg'>Status changed successfully</span></strong>
				<button type="button" class="btn-close" data-bs-dismiss="toast"></button>
			</div> 
			</div>

		<div class="toast p-3 position-fixed top-0 start-50 translate-middle-x bg-white mt-3" id="wsdesk_delete_item_toast" style="min-width: 450px;">
			<div class="toast-header border-0 border-bottom p-0 pb-2">
				<strong class="mx-auto">
					<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="0 0 20 22" class="me-2">
						<g id="Icon_feather-trash-2" data-name="Icon feather-trash-2" transform="translate(-3.5 -2)">
							<path id="Path_648" data-name="Path 648" d="M4.5,9h18" transform="translate(0 -2)" fill="none" stroke="#dc3545" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
							<path id="Path_649" data-name="Path 649" d="M21.5,7V21a2,2,0,0,1-2,2H9.5a2,2,0,0,1-2-2V7m3,0V5a2,2,0,0,1,2-2h4a2,2,0,0,1,2,2V7" transform="translate(-1 0)" fill="none" stroke="#dc3545" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
							<path id="Path_650" data-name="Path 650" d="M15,16.5v6" transform="translate(-3.5 -4.5)" fill="none" stroke="#dc3545" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
							<path id="Path_651" data-name="Path 651" d="M21,16.5v6" transform="translate(-5.5 -4.5)" fill="none" stroke="#dc3545" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
						</g>
						</svg>
						Confirm Delete</strong>
				<button type="button" class="btn-close" data-bs-dismiss="toast"></button>
			</div>
			<div class="toast-body p-0">
				<div class="fs-6 fw-semi-bold my-2">Are you sure, you want to delete item?</div>

				<div class="d-flex gap-3 justify-content-center ">
					<button class="btn px-4 btn-outline-secondary" data-bs-dismiss="toast">Cancel</button>
					<button class="btn px-4 btn-primary" id="elex-multi-vendor-for-woocommerce-delete-prod-confirm-btn">
						Confirm
					</button>
				</div>
				</div>
			 
		</div>


		<div class="col-12 col-md-2 flex-1">
			<button class="btn btn-primary w-100 h-100 elex-multi-vendor-for-woocommerce-add-product-btn mb-3 p-2">
				<i class="fa-solid fa-plus"></i>
				New Product
			</button>
		</div>
</div>


<div class="row " id='elex-multi-vendor-for-woocommerce-tabs-div'>
	<div class="col-xl-8 col-lg-7 overflow-auto mb-3">
		<div class="d-flex gap-2 flex-wrap elex-table-links-btn ">
			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap 
			<?php 
			if ( ( empty( filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && ( empty( filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && ( empty( filter_input( INPUT_GET, 'enabled' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! filter_input( INPUT_GET, 'enabled' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) ) {
echo 'active'; } 
			?>
			" > <a style='text-decoration: none !important;' href="
			<?php 
			$remove_args_arr_all = array( 'status', 'stock', 'enabled', 'page_c', 'page_num', 'from_date', 'to_date', 'elex-advance-filter' ); 
			$ulr                 = remove_query_arg( $remove_args_arr_all );   

			$ulr = add_query_arg( 'status', '', $ulr );
			echo esc_url( $ulr ); 
			?>
			">All</a></button>

			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap 
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'publish' === filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$remove_args_arr = array( 'status', 'stock', 'enabled', 'page_c', 'page_num', 'from_date', 'to_date', 'elex-advance-filter' ); 
			$ulr             = remove_query_arg( $remove_args_arr );   

			$ulr = wp_nonce_url( add_query_arg( 'status', 'publish', $ulr ) , 'elex_mv_prod_page_nonce', 'nonce' );
			echo esc_url( $ulr ); 
					
			?>
			">Published</a></button>

			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'pending' === filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php
			$ulr = remove_query_arg( $remove_args_arr );   

			$ulr = add_query_arg( 'status', 'pending', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">Pending</a></button>
			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'reject' === filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$ulr = remove_query_arg( $remove_args_arr );   

			$ulr = add_query_arg( 'status', 'reject', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">Rejected</a></button>
			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'draft' === filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$ulr = remove_query_arg( $remove_args_arr );   

			$ulr = add_query_arg( 'status', 'draft', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">Draft</a></button>			

			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'low' === filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$remove_args_arr_stock = array( 'status', 'stock', 'enabled', 'page_c', 'page_num', 'from_date', 'to_date', 'elex-advance-filter' ); 

			$ulr = remove_query_arg( $remove_args_arr_stock );   

			$ulr = add_query_arg( 'stock', 'low', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">Low Stock</a></button>
			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'out' === filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$ulr = remove_query_arg( $remove_args_arr_stock );   

			$ulr = add_query_arg( 'stock', 'out', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">Out Of Stock</a></button>
			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'onbackorder' === filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$ulr = remove_query_arg( $remove_args_arr_stock );   

			$ulr = add_query_arg( 'stock', 'onbackorder', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">On Backorder</a></button>
			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'enabled' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'visible' === filter_input( INPUT_GET, 'enabled' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$remove_args_arr_en = array( 'status', 'stock', 'enabled', 'page_c', 'page_num', 'from_date', 'to_date', 'elex-advance-filter' ); 
			$ulr                = remove_query_arg( $remove_args_arr_en );   

			$ulr = add_query_arg( 'enabled', 'visible', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">Enabled</a></button>
			<button class="btn border border-secondary bg-secondary bg-opacity-25 text-nowrap  
			<?php 
			if ( ! empty( filter_input( INPUT_GET, 'enabled' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) && 'hidden' === filter_input( INPUT_GET, 'enabled' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
echo 'active'; } 
			?>
			"><a style='text-decoration: none !important;' href="
			<?php 
			$ulr = remove_query_arg( $remove_args_arr_en );   

			$ulr = add_query_arg( 'enabled', 'hidden', $ulr );
			$ulr = wp_nonce_url( $ulr, 'elex_mv_prod_page_nonce', 'nonce' );

			echo esc_url( $ulr ); 
			?>
			">Disabled</a></button>


		</div>

	</div>
	<div class="col-xl-4 col-lg-5  mb-3">

		<div class="d-flex gap-2 nav-fill justify-content-end">

		<?php 
		if ( ! empty( filter_input( INPUT_GET, 'enabled' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! empty( filter_input( INPUT_GET, 'stock' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! empty( filter_input( INPUT_GET, 'status' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! empty( filter_input( INPUT_GET, 'sort_by' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! empty( filter_input( INPUT_GET, 'order_by' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! empty( filter_input( INPUT_GET, 'to_date' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) || ! empty( filter_input( INPUT_GET, 'from_date' , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) ) {
			?>
				<a href="#" class="text-decoration-underline btn fs-6 text-info" id="clear-filter-for-vendor-product-btn" >Clear Filters</a>
<?php

		} 
		?>


			<button class="btn btn-sm btn-outline-primary elex-multi-vendor-for-woocommerce-add-filter-open-btn" >
				<svg xmlns="http://www.w3.org/2000/svg" width="20" height="18" viewBox="0 0 22 20">
					<path id="Icon_feather-filter" data-name="Icon feather-filter" d="M22.2,2.517H2.2l8,10v6l4,2v-8Z" transform="translate(-1.197 -1.517)" fill="none" stroke="#3f5980" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
				</svg>
				Advance Filter
			</button>

			<button class="btn btn-outline-primary elex-multi-vendor-for-woocommerce-add-export-open-btn">Export</button>
		</div>
	</div>
</div>



<div class="table-responsive" id="elex-multi-vendor-for-woocommerce-product-table-div">
	<table id="elex-multi-vendor-for-woocommerce-prod-table" class="table table-borderless align-middle text-dark elex-multi-vendor-for-woocommerce-table">

		<thead class="table-secondary rounded-2">
			<tr class="">
				<th scope="col" class="text-center" style="width:250px;">Product Details</th>
				<th scope="col" style= "margin-left:10px;">Price (<?php echo esc_html( get_woocommerce_currency() ); ?>)</th>
				<th class="text-nowrap text-center"scope="col" style= "margin-left:10px;">Commission (%)</th>
				<th scope="col">Stock</th>
				<th scope="col">Views</th>
				<th scope="col">Sold</th>
				<th scope="col">Status</th>
				<th scope="col">Actions</th>
			</tr>
		</thead>
		<tbody>

			<?php
			if ( 0 === $count_of_mv_product ) {
				?>
				<tr class="shadow-sm rounded-3">
				<td class="table-prod-details" colspan="7">
				<span>
				No Products Found. Please Create Your Own Product
			</span>
				</td>
				</tr>
			<?php	
			}

			foreach ( $products_elex_mv as $product ) :

				?>
					<tr class="shadow-sm rounded-3">
						<td class="table-prod-details">
							<div class="d-flex gap-3 align-items-center">

							<?php echo wp_kses_post( $product->get_image() ); ?>

								<div class="text-start w-100">
									<div class="fs-6 mb-1"><b class="text-break" ><?php echo esc_html( $product->get_name() ); ?></b></div>
									<div class="fs-6 mb-1 text-secondary"><small>Dated: 
									<?php 
									$date_fomat = get_option( 'date_format' );
									$date_use   = $product->get_date_created() ? $product->get_date_created() : '';
									if ( $date_use ) {
										echo esc_html( gmdate( $date_fomat, strtotime( $date_use ) ) ); 
									} else {
										echo '--';
									}
									?>
									</small></div>
								<?php if ( 'draft' === $product->get_status() ) { ?>
									<div class="btn btn-sm btn-secondary text-white w-100">Draft</div>
									<?php
								} elseif ( 'publish' === $product->get_status() ) {
									?>
										<div class="btn btn-sm btn-success text-white w-100">Published</div>
									<?php

								} elseif ( 'reject' === $product->get_status() ) {
									?>
									<div class="btn btn-sm btn-danger text-white w-100">Rejected</div>

								<?php
								} elseif ( 'pending' === $product->get_status() ) {
									?>
									<div class="btn btn-sm btn-warning text-white w-100">Pending</div>
								<?php
								}
								?>
								</div>
								
							</div>
						</td>
						<td>
							<?php
								$args_format = array(
									'ex_tax_label'       => false,
									'currency'           => '',
									'decimal_separator'  => wc_get_price_decimal_separator(),
									'thousand_separator' => wc_get_price_thousand_separator(),
									'decimals'           => wc_get_price_decimals(),
									'price_format'       => get_woocommerce_price_format(),
								);
								if ( $product->get_regular_price() && $product->get_sale_price() ) {

									?>
									<small class="text-secondary text-decoration-line-through mb-0">
									<?php   
									if ( $product->get_sale_price() ) {
								echo number_format( $product->get_regular_price(), $args_format['decimals'], $args_format['decimal_separator'], $args_format['thousand_separator'] ); 
									}  
									?>
							</small><br>
								<?php
								}
								?>
							<b>
							<?php 
								
							if ( $product->get_sale_price() ) {
								echo number_format( $product->get_sale_price(), $args_format['decimals'], $args_format['decimal_separator'], $args_format['thousand_separator'] ); 
							} elseif ( $product->get_regular_price() ) {
								echo number_format( $product->get_regular_price(), $args_format['decimals'], $args_format['decimal_separator'], $args_format['thousand_separator'] ); 
							} elseif ( $product->is_type( 'variable' ) ) {
								$min_price = $product->get_variation_price( 'min' ) ? $product->get_variation_price( 'min' ) : '0';
								$max_price = $product->get_variation_price( 'max' ) ? $product->get_variation_price( 'max' ) : '0';
								echo ' ' . esc_html( $min_price ) . ' - ' . esc_html( $max_price );
							} else {
								echo '--';
							}
							?>

								</b>

						</td>
						<td>
							<b>
						<?php 
										$pro_com = $product->get_meta( 'elex_mv_commission', true );
						if ( $pro_com ) {

							echo esc_html( $pro_com );    
								// $pro_commission_type = $product->get_meta( 'commission_type', true );
								// var_dump($pro_commission_type);

								// if ( 'percent' === $pro_commission_type ) {
								//  echo '%';
								// }
						} else {
							echo '--';    

						}
						?>
						</b>
						</td>
						<td>
							<b><?php echo esc_html( $product->get_stock_quantity() ? $product->get_stock_quantity() : '--' ); ?></b>
						</td>
						<td>
						<b><?php echo esc_html( $product->get_meta( 'elex_mv_views_count' ) ? $product->get_meta( 'elex_mv_views_count' ) : '--' ); ?></b>
						</td>
						<td>
						<b><?php echo esc_html( $product->get_total_sales() ? $product->get_total_sales() : '--' ); ?></b>

						</td>
						<td>
						<?php 
						if ( 'publish' === $product->get_status() ) {
							?>
							<label class="elex-enable-disable-switch">
								<input 
							
								type="checkbox" 
							<?php 
							if ( 'visible' === $product->get_catalog_visibility() ) {
							
									esc_html_e( 'checked' , 'elex-multi-vendor-for-woocommerce' );
							} 
							?>
								 
								id="elex_mv_check_enable_<?php echo esc_html( $product->get_id() ); ?>" onclick="changeProductStatusFunc(<?php echo esc_html( $product->get_id() ); ?>)">
								<div class="switch round"></div>
							</label>
<?php } ?>
						</td>
						<td>
						<?php 


					
						$has_permission = true;

						// if ( 'simple' === $product->get_type() ) {


						?>
						<div class="d-flex gap-1">
						<button class="btn btn-sm p-2 rounded-circle text-primary d-flex gap-2 align-items-center elex-multi-vendor-for-woocommerce-edit-product-btn elex-multi-vendor-for-woocommerce-hover-success" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-success" data-bs-placement="bottom" title="Edit" data-attr-id="<?php echo esc_html( $product->get_id() ); ?>">
									<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 18.638 18.695">
									<g id="Icon_feather-edit-3" data-name="Icon feather-edit-3" transform="translate(-3.486 -3.183)">
										<path id="Path_29" data-name="Path 29" d="M17.8,30.363H26.12" transform="translate(-4.996 -9.486)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
										<path id="Path_30" data-name="Path 30" d="M16.964,4.775a1.92,1.92,0,0,1,2.773,0,2.308,2.308,0,0,1,0,3.067L7.952,19.344,4.486,20.878l.693-3.834Z" transform="translate(0 0)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
									</g>
								</svg>
								</button>
						<?php //} ?> 

								<button class="btn btn-sm p-2 rounded-circle text-primary d-flex gap-2 align-items-center elex-multi-vendor-for-woocommerce-delete-product-btn elex-multi-vendor-for-woocommerce-hover-danger" data-bs-toggle="tooltip" data-bs-custom-class="tooltip-danger" data-bs-placement="bottom" title="Delete"  data-attr-id="<?php echo esc_html( $product->get_id() ); ?>">
									<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 19 19">
										<g id="Icon_feather-trash-2" data-name="Icon feather-trash-2" transform="translate(-3.116 -2.5)">
											<path id="Path_31" data-name="Path 31" d="M4.116,9.082h17" transform="translate(0 -2.582)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
											<path id="Path_32" data-name="Path 32" d="M21.217,6.5v12a2.156,2.156,0,0,1-2,2h-10a2.156,2.156,0,0,1-2-2V6.5m3,0v-2c0-.944.951-1,2-1h4c1.049,0,2,.056,2,1v2" transform="translate(-1.101)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
											<path id="Path_33" data-name="Path 33" d="M14.969,16.31v5" transform="translate(-3.853 -5.81)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
											<path id="Path_34" data-name="Path 34" d="M21.171,16.31v5" transform="translate(-6.055 -5.81)" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
										</g>
										</svg>
									</button>
						</div>
								</td>
					</tr>
			<?php


				endforeach;


			?>

		</tbody>
	</table>
</div>
<div class="div">
<nav aria-label="Page navigation example">
	<ul class="justify-content-center pagination">
	<li class="page-item"><a class="page-link btn border-0 text-decoration-none
	<?php 
	if ( $page_number <= 1 ) {
		?>
	disabled <?php } ?>"  href="
					<?php 
echo esc_url(
	add_query_arg(
		array(
			'page_c'   => 'prev', 
			'page_num' => $page_number,
		) 
	) 
); 
					?>
	"><i class="fa-solid fa-chevron-left"></i> Previous</a></li>
	<li class="page-item"><a class="page-link btn border-0 text-decoration-none
	<?php 
	if ( $num_of_products < $limit_of_products || 0 === $num_of_products ) {
		?>
	disabled <?php } ?>"  href="
					<?php 
$next_url = add_query_arg(
	array(
		'page_c'   => 'next',
		'page_num' => $page_number,
	) 
);
echo esc_url( remove_query_arg( 'elex-advance-filter', $next_url ) ); 
					?>
	">Next <i class="fa-solid fa-chevron-right"></i></a></li>
	</ul>  
</nav>
</div>

<?php

require ELEX_MULTI_VENDOR_PLUGIN_PATH . 'templates/products/product-advanced-filters.php';
require ELEX_MULTI_VENDOR_PLUGIN_PATH . 'templates/products/product-export.php';
require ELEX_MULTI_VENDOR_PLUGIN_PATH . 'templates/products/edit-product/edit-main.php';

?>
