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

if (!defined('ABSPATH'))
{
    exit;
}
?>
<div class="col-12 col-sm-7 col-lg-8">
    <div class="card">
        <div class="card-body">
            <div class="mb-3">
                <label class="form-label">{{ langs.product.product_name }} <span class="text-danger">*</span></label>
                <input type="text" class="form-control" v-model="pageAdd.data.title" :placeholder="langs.product.product_name_desc">
            </div>
            <div class="mb-3">
                <div class="row">
                    <div class="col-6">
                        <label class="form-label">{{ langs.product.printing }} <span class="text-danger">*</span></label>
                        <a :href="adminUrl+ 'admin.php?page=<?php echo esc_html(PDAPP_PLUGIN_SLUG. '-printings'); ?>'" class="btn btn-primary w-100 d-flex gap-1 align-items-center justify-content-center" v-if="printings.length == 0">
                            <i class="material-icons material-symbols-outlined pdapp-search-icon">add</i>
                            {{ langs.print.add_print }}
                        </a>
                        <select v-else class="form-select mw-100" v-model="pageAdd.data.pid">
                            <option v-for="(printing, pid) in printings" :key="pid" :value="printing.id">{{ printing.title }}</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>