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

use Elex\MultiVendor\Controller\HelpAndSupportController;
?>

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



		<!-- main-content -->
		<div class="elex-multi-vendor-for-woocommerce-main p-2 flex-1 me-4 position-relative d-flex flex-column">


				<div class="p-1 fw-bold">
					<p class="mb-2"><?php echo esc_html_e( 'Before raising the ticket,we recommend you to go through our ', 'elex-multi-vendor-for-woocommerce' ); ?><a  target="_blank" href="https://elextensions.com/plugin/multi-vendor-plugin-for-woocommerce/"><?php echo esc_html_e( 'detailed documentation.', 'elex-multi-vendor-for-woocommerce' ); ?></a></p>
					<p class="mb-0"><?php echo esc_html_e( 'To get in touch with our helpdesk representative, raise a support ticket.', 'elex-multi-vendor-for-woocommerce' ); ?></p>
					<div class="text-danger fw-normal"><small><?php echo esc_html_e( '*Attach the system info, Error log & Debug File for faster solution.', 'elex-multi-vendor-for-woocommerce' ); ?></small></div>

					<a target="_blank" href="https://support.elextensions.com/"><button class="btn btn-primary py-2 my-3"><?php echo esc_html_e( 'Raise a ticket' , 'elex-multi-vendor-for-woocommerce' ); ?></button></a>
					<div class="d-flex gap-3">
							<form  method="post" enctype="multipart/form-data" action="<?php echo esc_url( admin_url( 'admin.php?page=elex-multi-vendor-for-woocommerce-help&tab=tickets' ) ); ?>">
								<?php wp_nonce_field( 'action', 'system_info_nonce' ); ?>
								<input type="hidden" name="action" value="download_system_info"/>

								<div>
									<textarea hidden readonly="readonly" onclick="this.focus();this.select()" id="ssi-textarea" name="send-system-info-textarea" title="<?php esc_html_e( 'To copy the System Info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'elex-multi-vendor-for-woocommerce' ); ?>">
										<?php

										echo esc_html( HelpAndSupportController::display() );
										?>
									</textarea>
								</div>
								<p class="submit">
									<button type="submit" class="btn btn-outline-primary"><?php echo esc_html_e( 'Download System Info', 'elex-multi-vendor-for-woocommerce' ); ?></button>
								</p>

							</form>

					</div>
				</div>
			</div>
			
			

					   
			


		</div>


	</div>
