<?php
global $woocommerce, $post, $typenow;
/*  $orders = get_posts( array(
        'numberposts' => 100,
        'post_status' => array_keys( wc_get_order_statuses() ),
        'post_type'   => wc_get_order_types()[0],
        'orderby'     => 'DESC'
    )); */

$wcgen_settings = get_option('_custom_wcgen_all_settings');
// echo "<pre>";
// print_r($wcgen_settings);
// echo "</pre>";
$newDate =  date("d/m/Y");
if (isset($wcgen_settings) && !empty($wcgen_settings)) {
    extract($wcgen_settings);
    if (isset($fdate) && !empty($fdate)) {
        $originalDate = $fdate;
        $newDate = date("d/m/Y", strtotime($originalDate));
    } else {
        $newDate = '30/10/2021';
    }
}
if (isset($s_design['designL']) && !empty($s_design['designL'])) {
    $selected_design =  esc_html($s_design['designL']);
} else {
    $selected_design =  'designL1';
}

?>
<section>
    <!-- <?php if (isset($bordercolor) && !empty($bordercolor)) {
                $color =  esc_html($bordercolor);
            } else {
                $color =  '#03416c';
            } ?>
        <style>
            .themecolor{
                background:<?php echo $color; ?>
            }
        </style> -->
    <form method="post" id="pdfform" action="<?php echo WCGEN_TCPDF_URL . '' . $selected_design . '.php'; ?>" target="_blank">

        <ul class="nav nav-tabs" id="wcgen" role="tablist">
            <li class="nav-item" role="presentation">
                <button class="nav-link active" id="design-tab" data-bs-toggle="tab" data-bs-target="#design" type="button" role="tab" aria-controls="design" aria-selected="true">Design</button>
            </li>
            <li class="nav-item" role="presentation">
                <button class="nav-link" id="support-tab" data-bs-toggle="tab" data-bs-target="#support" type="button" role="tab" aria-controls="support" aria-selected="false">Support</button>
            </li>
        </ul>
        <div class="tab-content" id="wcgenContent">
            <div class="tab-pane fade show active" id="design" role="tabpanel" aria-labelledby="design-tab">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <!-- Left Sidebar -->
                        <?php include(WCGEN_TCPDF_INC . 'admin/wc-admin-left-sidebar.php'); ?>

                        <!-- Right Sidebar -->
                        <?php include(WCGEN_TCPDF_INC . 'admin/wc-admin-right-sidebar.php'); ?>

                    </div>
                    <!-- Main row end-->
                    <!-- Footer Button Row Start-->
                    <div class="row mt-2 py-3">
                        <div class="col-lg-12 col-md-12 col-sm-12 p-0">
                            <a href="#" class="btn btn-primary" id="pdfsubmit"><?php echo __('Save', 'wcgen'); ?></a>
                        </div>
                    </div>
                    <!-- Footer Button Row End-->
                </div>
                <!-- Container End-->
            </div>
            <div class="tab-pane fade" id="support" role="tabpanel" aria-labelledby="support-tab">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-xl-7 ">
                            <div class="mb-3">

                                <div class="row">
                                    <div class="col-xl-6 col-md-6">
                                        <h6 class="px-0 mb-3 sec_heading"><?php echo __('Explore Our Services', 'wcgen'); ?></h6>
                                        <div class="colbox">
                                            <div class="side_review optigif p-3">
                                            <a href="https://1.bp.blogspot.com/-Gh_wRgDCnTc/YNxa8JzXTaI/AAAAAAAABlY/Rrbh-3PVYtYh7XWYVeeyJXHIa_wZfRUegCLcBGAsYHQ/s0/optimize-new-min.gif" target="_blank"><img src="<?php echo WCGEN_IMG . 'hirewebxperts.jpg' ?>" /></a>
                                                <p class="mb-0 mt-2"><a href="https://plugins.hirewebxperts.com/support/" target="_blank"><?php echo __('For WordPress Design & Development | Custom Plugin Services', 'wcgen'); ?></a>
                                                
                                                </p>
                                                <p class="mb-0 mt-1"><a href="https://wordpress.org/support/plugin/digital-warranty-card-generator/reviews/" target="_blank"><?php echo __('Please Review', 'wcgen'); ?> <span class="dashicons dashicons-thumbs-up"></span></a></p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row mid-row">
                                    <div class="col-12 p-0">
                                        <h6 class="px-0 mb-3 sec_heading"><?php echo __('Try Our Other WordPress Plugins', 'wcgen'); ?></h6>

                                        <div class="owl-carousel owl-theme " id="banners">
                                            <div class="item">
                                                <div class="side_review colbox">
                                                    <a href="https://wordpress.org/plugins/woo-custom-cart-button/" target="_blank"><img src="<?php echo WCGEN_IMG . 'custom-add-to-cart.jpg' ?>" /></a>
                                                    <p class="mb-0 p-3 vido55"><a href="https://wordpress.org/plugins/woo-custom-cart-button/" target="_blank"><?php echo __('Custom Add to Cart Button', 'wcgen'); ?></a>
                                                    </p>
                                                    <p class="mb-0 p-3 vido45 text-end"><a href="https://plugins.hirewebxperts.com/#price" class="sub_btn" target="_blank"><?php echo __('Get Pro', 'wcgen'); ?></a>
                                                    <div class="clear"></div>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <div class="side_review colbox">
                                                    <a href="https://wordpress.org/plugins/awesome-checkout-templates/" target="_blank"><img src="<?php echo WCGEN_IMG . 'awesome-checkout.jpg' ?>" /></a>
                                                    <p class="mb-0 p-3"><a href="https://wordpress.org/plugins/awesome-checkout-templates/" target="_blank"><?php echo __('Awesome Checkout Templates', 'wcgen'); ?></a>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <div class="side_review colbox">
                                                    <a href="https://wordpress.org/plugins/passwords-manager/" target="_blank"><img src="<?php echo WCGEN_IMG . 'pasword-manager.jpg' ?>" /></a>
                                                    <p class="mb-0 p-3"><a href="https://wordpress.org/plugins/passwords-manager/" target="_blank"><?php echo __('Passwords Manager', 'wcgen'); ?></a></p>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <div class="side_review colbox">
                                                    <a href="https://wordpress.org/plugins/gforms-addon-for-country-and-state-selection" target="_blank"><img src="<?php echo WCGEN_IMG . 'country-state-selection.jpg' ?>" /></a>
                                                    <p class="mb-0 p-3"><a href="https://wordpress.org/plugins/gforms-addon-for-country-and-state-selection" target="_blank"><?php echo __('Country and State Selection Addon for Gravity Forms', 'wcgen'); ?></a>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <div class="side_review colbox">
                                                    <a href="https://wordpress.org/plugins/digital-warranty-card-generator/" target="_blank"><img src="<?php echo WCGEN_IMG . 'digital-warranty-card.jpg' ?>" /></a>
                                                    <p class="mb-0 p-3"><a href="https://wordpress.org/plugins/digital-warranty-card-generator/" target="_blank"><?php echo __('Digital Warranty Card Generator', 'wcgen'); ?></a>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <div class="side_review colbox">
                                                    <a href="https://wordpress.org/plugins/horizontal-slider-with-scroll/" target="_blank"><img src="<?php echo WCGEN_IMG . 'horizontal-slider.jpg' ?>" /></a>
                                                    <p class="mb-0 p-3"><a href="https://wordpress.org/plugins/horizontal-slider-with-scroll/" target="_blank"><?php echo __('Horizontal Slider with Scroll', 'wcgen'); ?></a>
                                                    </p>
                                                </div>
                                            </div>
                                            <div class="item">
                                                <div class="side_review colbox">
                                                    <a href="https://wordpress.org/plugins/text-case-converter/" target="_blank"><img src="<?php echo WCGEN_IMG . 'text-case-converter.jpg' ?>" /></a>
                                                    <p class="mb-0 p-3"><a href="https://wordpress.org/plugins/text-case-converter/" target="_blank"><?php echo __('Text Case Converter', 'wcgen'); ?></a>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row mid-row">
                                    <div class="col-12 p-0">
                                        <h6 class="px-0 mb-3 sec_heading"><?php echo __('Try World Class Hosting Services', 'wcgen'); ?></h6>

                                        <div class="owl-carousel owl-theme " id="kinsta_banners">
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta1.png' ?>" />
                                                </a>
                                            </div>
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta2.jpg' ?>" />
                                                </a>
                                            </div>
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta3.png' ?>" />
                                                </a>
                                            </div>
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta4.png' ?>" />
                                                </a>
                                            </div>
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta5.png' ?>" />
                                                </a>
                                            </div>
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta6.jpg' ?>" />
                                                </a>
                                            </div>
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta7.jpg' ?>" />
                                                </a>
                                            </div>
                                            <div class="item">
                                                <a href="https://kinsta.com/?kaid=NSFASHTZZXQG" target="_blank">
                                                    <img src="<?php echo WCGEN_IMG . 'kinsta8.png' ?>" />
                                                </a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</section>
