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

<?php	  
		$carrier_images = include 'carrier-images.php'; 
		
?>
	<div class="bg-dark bg-opacity-25 elex-multi-vendor-for-woocommerce-popup  elex_ac_carrier_setting" >
				<div class="col-md-9 col-lg-6 bg-white h-100 ms-auto overflow-auto position-relative elex-multi-vendor-for-woocommerce-popup-content">
					<div class="py-2 px-4 text-center position-sticky top-0 start-0 bg-white">
						<div class="fs-5 fw-semi-bold mb-1">Carrier Settings</div>
						<button class="btn rounded-circle position-absolute top-0 end-0  elex_ac_carrier_setting_close_btn">
							<i class="fa-solid fa-xmark"></i>
						</button>
					</div>
					<div class="py-2 px-4">
						<form  class="elex-multi-vendor-for-woocommerce-shipping-carrier-list" > 
						<?php 
						foreach ( $shipping_data['carriers'] as $carrier ) : 
							?>

						<div class="p-3 mb-3 border border-primary rounded d-flex justify-content-between">
							<img src="<?php echo esc_html( $carrier_images[ $carrier['name'] ] ); ?>" alt="<?php echo esc_html( $carrier['name'] ); ?>">
							<div class="d-flex align-items-center gap-2">
								<div>Status:</div>
								<label class="elex-enable-disable-switch" >
									<input type="checkbox" name="<?php echo esc_html( $carrier['name'] ); ?>" 
																			<?php 
															
																			if ( isset( $carrier['enabled'] ) && $carrier['enabled'] ) {
										echo esc_attr( 'checked' );} 
																			?>
									>
									<div class="switch round"></div>
								</label>
							</div>
						</div>
						
						<?php endforeach; ?>

						<button type="button" class="btn btn-primary w-100 carrier-rates-list-btn" data-method-slug="<?php echo esc_html( $shipping_data['slug'] ); ?>" data-store-id = "<?php echo esc_html( $store->get_id() ); ?>">
							Save Changes
						</button>

						</form>
						
						
					</div>


				</div>
			</div>

