<?php
/*
* Plugin-Name: Product Designer App
* Plugin-URI: https://productdesignerapp.com
* Author: productdesignerapp
* Template
*/

if (!defined('ABSPATH'))
{
    exit;
}
?>
<div class="modal fade show d-block" role="dialog" v-if="modal.show">
    <div class="modal-dialog modal-dialog-scrollable" :class="modal.size == undefined ? 'modal-md' : 'modal-'+ modal.size">
        <div class="modal-content" :class="'modal-type-'+ modal.type">
            <div class="modal-header pt-1 pb-1" v-if="modal.header">
                <h4 class="modal-title" v-if="modal.title != ''">{{ modal.title }}</h4>
                <button class="btn btn-secondary btn-sm p-0 px-1 rounded-4" v-if="modal.type == 'yourDesign'" @click="openDesign('edit')">{{ customerMail }}</button>
                <button type="button" class="btn p-0 m-0 pdapp-w30 pdapp-h30 text-danger ps-1" @click="modal.show = false">
                    <i class="material-icons material-symbols-outlined fs-3">close</i>
                </button>
            </div>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-crop.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-replace-photo.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-preview.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-team.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-message.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-mail.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-back.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-cart.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-quote.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-reset.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-save-design.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-your-designs.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-help.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-reload.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-remove.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-download.php'); ?>

            <?php require_once(PDAPP_PLUGIN_DIR .'templates/'. PDAPP_THEME_FOLDER .'/layouts/extends/modal/html-confirm-view.php'); ?>
        </div>
    </div>
    <div v-if="modal.header" class="modal-backdrop fade show" @click="modal.show = false"></div>
    <div v-else class="modal-backdrop fade show"></div>
</div>