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

if (!defined('ABSPATH'))
{
    exit;
}
?>
<div class="row justify-content-between">
    <div class="col-auto"></div>
    <div class="col-auto d-flex gap-2">
        <div class="d-block">
            <button type="button" class="btn btn-primary waves-effect waves-light d-none d-lg-flex align-items-center justify-content-center tooltip-top" :data-tooltip="langs.temp.create_new_folder" @click="editFolder('')">
                <i class="material-icons material-symbols-outlined me-1">create_new_folder</i>
                {{ langs.temp.create_folder }}
            </button>
            <button type="button" class="btn btn-primary waves-effect waves-light p-1 d-lg-none d-flex align-items-center justify-content-center tooltip-top" :data-tooltip="langs.temp.create_new_folder" @click="editFolder('')">
                <i class="material-icons material-symbols-outlined">create_new_folder</i>
            </button>
        </div>
        <div class="d-block" v-if="loadedStore">
            <button type="button" class="btn btn-secondary waves-effect waves-light d-none d-lg-flex align-items-center justify-content-center tooltip-top" :data-tooltip="langs.temp.import_template_store" @click="showTempStore()" :disabled="loadingStore">
                <span class="spinner-border spinner-border-sm me-1" role="status" aria-hidden="true" v-if="loadingStore"></span>
                <i class="material-icons material-symbols-outlined" v-else>cloud_download</i>
                {{ langs.setting.import }}
            </button>
            <button type="button" class="btn btn-secondary waves-effect waves-light p-1 d-lg-none d-flex align-items-center justify-content-center tooltip-top" :data-tooltip="langs.temp.import_template_store" @click="showTempStore()" :disabled="loadingStore">
                <span class="spinner-border spinner-border-sm me-1" role="status" aria-hidden="true" v-if="loadingStore"></span>
                <i class="material-icons material-symbols-outlined" v-else>cloud_download</i>
            </button>
        </div>
        <div class="d-block">
            <button type="button" class="btn btn-info waves-effect waves-light d-none d-lg-flex align-items-center justify-content-center tooltip-top" :data-tooltip="langs.temp.create_your_template" @click="editTemp('')">
                <i class="material-icons material-symbols-outlined me-1">post_add</i>
                {{ langs.temp.create_temp }}
            </button>
            <button type="button" class="btn btn-info waves-effect waves-light p-1 d-lg-none d-flex align-items-center justify-content-center tooltip-top" :data-tooltip="langs.temp.create_your_template" @click="editTemp('')">
                <i class="material-icons material-symbols-outlined">post_add</i>
            </button>
        </div>
    </div>
</div>