<?php
/******************************************************************************
 *   ______                                                                   *
 *  /       \                                                                 *
 * /$$$$$$  | ________  __    __   ______    ______                           *
 * $$ |__$$ |/        |/  |  /  | /      \  /      \                          *
 * $$    $$ |$$$$$$$$/ $$ |  $$ |/$$$$$$  |/$$$$$$  |                         *
 * $$$$$$$$ |  /  $$/  $$ |  $$ |$$ |  $$/ $$    $$ |                         *
 * $$ |  $$ | /$$$$/__ $$ \__$$ |$$ |      $$$$$$$$/                          *
 * $$ |  $$ |/$$      |$$    $$/ $$ |      $$       |                         *
 * $$/   $$/ $$$$$$$$/  $$$$$$/  $$/        $$$$$$$/                          *
 *                                                                            *
 * @PROJECT    : 3D Preview Extension [Magetop.com]                           *
 * @AUTHOR     : Azure - Developer                                            *
 * @COPYRIGHT  : © 2019  Magetop.com                                          *
 * @LINK       : https://Magetop.com                                          *
 * @CREATED    :  10/01/2022                                                  *
 ******************************************************************************/
/** @var \Magetop\Advancepreview\Block\CustomProduct $block */
$mediaUrl = $block->getMediaUrl(). 'advancepreview/icons/';
$_product = $block->getPreviewProductData();
$is3d = $_product->getData('pcto_is_3d');
?>
<?php if($is3d == 1) : ?>
<div id="demo-3d-test"></div>
    <div class="mgt-project-preview-actions">
        <div class="mgt-project-preview-action-left">
            <div id="btn-prview-standrad-design">
                <!-- <span>
                    <img src="<?php echo $mediaUrl.'standart.png' ?>" alt="standart" />
                </span>

                <span>
                    <?php echo __('Standart Design') ?>
                </span> -->

                <div class="primary actions-primary">
                    <button type="submit" class="action submit primary"><span>Standard Design</span></button>
                </div>
            </div>
            <div id="btn-prview-own-design">
               <!--  <span>
                      <img src="<?php echo $mediaUrl.'your-design.png' ?>" alt="your-design" />
                </span>
                <span>
                    <?php echo __('Your Design') ?>
                </span> -->
                <div class="primary actions-primary">
                    <button type="submit" class="action submit primary"><span>Your Design</span></button>
                </div>
            </div>
        </div>
        <div class="mgt-project-preview-action-middle" style="display: none;">
            <div class="mgt-project-preview-action-middle-one-icon">
               <!--  <span>
                     <img src="<?php echo $mediaUrl.'pdf-download.png' ?>" alt="pdf-download" />
                </span>
                <span>
                     <img src="<?php echo $mediaUrl.'ai-download.png' ?>" alt="ai-download" />
                </span> -->
                <div class="primary actions-primary">
                    <button type="submit" class="action submit primary"><span>PDF Download</span></button>
                </div>

                <div class="primary actions-primary">
                    <button type="submit" class="action submit primary"><span>AI Download</span></button>
                </div>

            </div>
            <!-- <div class="mgt-project-preview-action-middle-one-text">
                <span><?php echo __('Layout Download') ?></span>
            </div> -->
        </div>
        <div class="mgt-project-preview-action-right" style="display:none;">
            <!-- <div class="mgt-project-preview-action-right-icon">
                 <img src="<?php echo $mediaUrl.'upload-pdf.png' ?>" alt="upload-pdf" />
            </div> -->
            <div class="primary actions-primary">
                <!-- <button type="submit" class="action submit primary"><span>Upload your design</span></button> -->
                <div class="yourdesign-upload-btn-wrapper">
                    <form action="/" method="post" id="form-upload-custom-design" enctype="multipart/form-data" >
                        <button class="action primary"><?php echo __('Upload your design') ?></button>
                        <input type="hidden" name="product_id" value="<?php echo $_product->getId(); ?>">
                        <input id="txt-preview-upload-custom-design" type="file" name="custom_preview" />
                    </form>
                </div>
            </div>
            <!-- <div class="mgt-project-preview-action-right-text">
                <span>
                     <?php echo __('Design Upload') ?>
                </span>
            </div> -->
        </div>
        <div id="preview-standard-list-designs">
            <div class="primary actions-primary" style="float: left">
                <button type="button" class="action submit primary btn-preview-standard-model-item" three-id="1"><span>3D model 1</span></button>
            </div>

            <div class="primary actions-primary" style="float: left">
                <button type="button" class="action submit primary btn-preview-standard-model-item" three-id="2"><span>3D model 2</span></button>
            </div>
            <div class="primary actions-primary" style="float: left">
                <button type="button" class="action submit primary btn-preview-standard-model-item" three-id="3"><span>3D model 3</span></button>
            </div>
        </div>
    </div>

    <!--tab-->
    <?php /* ?>
    <div class="mg-custom-information-contentner">
        <ul class="mgt-custom-preview-information-tabs">
            <li class="mgt-custom-preview-information-tab mgt-custom-preview-information-tab-active">
                <a href="#" tab="tab-1"><?php echo __('General Info') ?></a>
            </li>
            <li class="mgt-custom-preview-information-tab">
                <a href="#" tab="tab-2"><?php echo __('Nutritions') ?></a>
            </li>
            <li class="mgt-custom-preview-information-tab">
                <a href="#" tab="tab-3"><?php echo __('Technical Info') ?></a>
            </li>
            <li class="mgt-custom-preview-information-tab">
                <a href="#" tab="tab-4"><?php echo __('delivery times') ?></a>
            </li>
        </ul>
        <div class="mgt-custom-preview-information-content">
            <div class="mgt-custom-preview-information-content-tab" id="mgt-custom-preview-information-content-tab-1">
                <?php echo $_product->getData('generalinfo') ?>
            </div>
            <div class="mgt-custom-preview-information-content-tab" id="mgt-custom-preview-information-content-tab-2" style="display: none">
                <?php echo $_product->getData('nutrition') ?>
            </div>
            <div class="mgt-custom-preview-information-content-tab" id="mgt-custom-preview-information-content-tab-3" style="display: none">
                <?php echo $_product->getData('technicalinfo') ?>
            </div>
            <div class="mgt-custom-preview-information-content-tab" id="mgt-custom-preview-information-content-tab-4" style="display: none">
                <?php echo $_product->getData('deliverytimes') ?>
            </div>

        </div>

    </div> */ ?>
<?php endif; ?>
