<?xml version="1.0"?>
<config
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
    <system>
        <tab id="biztech" translate="label comment" sortOrder="1">
            <label>PrintXpand</label>
        </tab>
         <section id="productdesigner" showInDefault="1" showInWebsite="1" showInStore="1">
             <group id="general"  showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="20">
                <label>General</label>

                <field id="enabled_design_btn_category" translate="label comment" type="select" sortOrder="2" showInDefault="0" showInWebsite="0" showInStore="0" >
                    <label>Design Button on Category Page</label>
                    <source_model>Brushyourideas\Productdesigner\Model\Adminhtml\Config\Source\Enablebutton</source_model>
                    <comment>Select "Enable" to display "Design It" button on Category Page and "Disable" to hide "Design It" button from Category Page.</comment>
                </field>    
                <field id="disable_addtocart_btn_category" translate="label comment" type="select" sortOrder="3" showInDefault="0" showInWebsite="0" showInStore="0" >
                    <label>Add to Cart Button on Category Page</label>
                    <source_model>Brushyourideas\Productdesigner\Model\Adminhtml\Config\Source\Enablebutton</source_model>
                    <comment>Select "Enable" to display "Add to Cart" button on Category Page and "Disable" to hide "Add to Cart" button on Category Page.</comment>
                </field> 
            </group>
             <group id="dynamic_message" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="130">
                 <field id="designit_label" translate="label comment" type="text" sortOrder="4" showInDefault="0" showInWebsite="0" showInStore="0" >
                    <label>Design It Label</label> 
                     <validate>required-entry</validate>
                    <comment>Add your label for design it button</comment>
                  </field>
            </group>
        </section>
        <section id="integration" showInDefault="1" showInWebsite="1" showInStore="1"  sortOrder="2">
            <tab>biztech</tab>
            <label>Product Designer API Configuration</label>
            <resource>Brushyourideas_IntegrationSync::biztech_integration</resource>
            <group id="general"  showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="10">
                <label>General</label>
                <field id="frontend_technology" translate="label" type="select" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Frontend Technology</label>
                    <source_model>Brushyourideas\IntegrationSync\Model\Config\Source\FrontendTechnology</source_model>
                    <comment>Select the technology used to run the frontend of the website and remove magento frontend access.</comment>
                </field>
                <field id="source_sys_base_url" translate="label comment" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Source System Base URL</label>
                    <comment>Add your soruce system base URL. e.g. : https://domain.com/</comment>
                    <validate>required-entry </validate>
                </field>
                <field id="loginurl" translate="label comment" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
                   <label>Cusotmer Login Url </label>
                    <comment>Add source system "Login" e.g. : "https://domain.com/account/login/".</comment>
                    <validate>required-entry </validate>
                </field>
                <field id="logouturl" translate="label comment" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
                   <label>Cusotmer Logout Url </label>
                    <comment>Add source system "Logout" URL  e.g. : "https://domain.com/account/logout/".</comment>
                    <validate>required-entry </validate>
                </field>
                <field id="source_sys_addto_carturl" translate="label comment" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Add To Cart URL</label>
                     <comment>Add source system "Add To Cart" URl e.g. : "https://domain.com/save/cart/".</comment>
                    <validate>required-entry </validate>
                </field>
                <field id="source_sys_save_designurl" translate="label comment" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Save Design URL</label>
                    <comment>Add source system "Save/Update Designer URL/ImageUrl e.g. : "https://domain.com/account/saveDesignerUrl/".</comment>
                    <validate>required-entry </validate>
                </field>
                <field id="code" translate="label" type="select" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Locale</label>
                    <source_model>Brushyourideas\IntegrationSync\Model\Config\Source\Locale</source_model>
                </field>
                 <field id="currency_base" translate="label comment" type="select" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
                    <label>Base Currency</label>
                    <frontend_model>Magento\Directory\Block\Adminhtml\Frontend\Currency\Base</frontend_model>
                    <source_model>Magento\Config\Model\Config\Source\Locale\Currency</source_model>
                    <backend_model>Magento\Config\Model\Config\Backend\Currency\Base</backend_model>
                    <comment>
                        <![CDATA[Select default currency of your website for the tool.]]>
                    </comment>
                </field>
                <field id="variation_count" translate="Variation Count" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Max Variations count to be synced</label>
                    <comment>Add maximum number of variation count to be synced using button sync process, Other variation will be managed in the cron.</comment>
                    <validate>required-entry</validate>
                </field>
            </group>
            <group id="other_settings" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="30">
                <label>Header Configuration</label>
                <field id="favicon" translate="label comment" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" type="Magento\Config\Block\System\Config\Form\Field\File">
                    <label>Favicon Image</label>
                    <comment>Allowed file types: ico, png, gif, jpg, jpeg, apng, svg. These formats might not be supported by all browsers. Default Favicon Image : BYI Favicon Image.</comment>
                    <backend_model>Brushyourideas\IntegrationSync\Model\Config\Backend\FaviconImage</backend_model>
                    <base_url type="media" scope_info="1">productdesigner\favicon</base_url>
                </field>
                <field id="logo_src" translate="label comment" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" type="Magento\Config\Block\System\Config\Form\Field\File">
                    <label>Logo Image</label>
                    <comment>Allowed file types: png, gif, jpg, jpeg. Default Logo Image: BYI Logo Image.</comment>
                    <backend_model>Brushyourideas\IntegrationSync\Model\Config\Backend\LogoImage</backend_model>
                    <base_url type="media" scope_info="1">productdesigner/logo</base_url>
                    <upload_dir config="system">productdesigner/logo</upload_dir>
                </field>
                <field id="logo_alt" translate="label comment" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" type="text">
                    <label>Logo Image Alt</label>
                </field>
            </group>
            <group id="signin_configuration" showInDefault="1" showInWebsite="1" showInStore="1" sortOrder="180">
                <label>Check Login</label>
                <field id="signinpopupmessage" translate="label comment" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1" type="text">
                    <label>Check Login Popup Message</label>
                </field>
            </group>
        </section>
    </system>
</config>
