<?php
/**
 * Load admin view for Account Tab.
 *
 * @package miniorange-sms-order-notification-otp-verification/views
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

$mowc_setup_guide_url = 'https://plugins.miniorange.com/woocommerce-order-notifications-plugin-setup-wordpress';

echo '	<div id="tab" class="w-max md:min-w-[268px] md:w-[268px] border-r p-mowc-4">
			
            <div class="flex flex-col gap-mowc-2">';

foreach ( $mowc_tab_details->tab_details as $mowc_mo_tabs ) {
	if ( $mowc_mo_tabs->show_in_nav ) {
				echo '
                <div>
                    <a  class="mowc-tab-item ' . ( $mowc_active_tab === $mowc_mo_tabs->menu_slug ? 'bg-slate-100' : '' ) . '"
                        href="' . esc_url( $mowc_mo_tabs->url ) . '"
                        id="' . esc_attr( $mowc_mo_tabs->id ) . '">
                        <svg
                          width="22"
                          height="22"
                          fill="none"
                          viewBox="0 0 24 24"
                        >
                          <path
                            fillRule="evenodd"
                            clipRule="evenodd"
                            d="' . esc_attr( $mowc_mo_tabs->icon ) . '"
                            fill="#000"
                          />
                        </svg>
                        
                        <p>' . esc_html( $mowc_mo_tabs->tab_name ) . '</p>
                    
                    </a>

                </div>';
	}
}

				echo '
                <div>
                    <hr> 
                    <a class="mt-mowc-2 mowc-tab-item" id="LicensingPlanButton" href="' . esc_url( $mowc_license_url ) . '">' . esc_html( mowc_( 'Licensing Plans' ) ) . '</a>       
                    <a class="mt-mowc-2 mowc-tab-item" id="Setup_guide" href="' . esc_url( $mowc_setup_guide_url ) . '"  target="_blank ">' . esc_html( mowc_( 'Setup Guide' ) ) . '</a>                  
                    <a><span class="mowc-tab-item" onClick="otpSupportOnClickWC(\'' . esc_js( 'Hi! I am interested in using your plugin and would like to get a demo of the features and functionality. Please schedule a demo for the plugin. ' ) . '\');" id="demoButton">
                        ' . esc_html( mowc_( 'Need a Demo?' ) ) . '
                    </span>
                        </a>
                    <a class="mowc-tab-item" id="faqButton" href="' . esc_url( $mowc_help_url ) . '" target="_blank" rel="noopener noreferrer">' . esc_html( mowc_( 'FAQs' ) ) . '</a>
                </div>';

			echo '
            </div></div>';
