<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="yeboyebo" translate="label" sortOrder="11">
            <label>Yeboyebo</label>
        </tab>
        <section id="yeboyebo_fuerastocknotificacion" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
            <class>separator-top</class>
            <label>Fuera de Stock Notificacion</label>
            <tab>yeboyebo</tab>
            <resource>Yeboyebo_FueraStockNotificacion::configuration</resource>
            <group id="settings" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Settings</label>
                <field id="enabled" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Activado</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="cron_send_notifications_enable" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enviar notificaciones de forma programada</label>
                    <comment>Si esta opcion está en no, todas las notificaciones se enviaran cuando cambie el estado de un producto (consume mas recursos)</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="enabled">1</field>
                    </depends>
                </field>
                <field id="cron_expr_send_notifications" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Frecuencia envio para las notificaciones</label>
                    <comment>cron expression  (Ejemplo: */30 * * * *)</comment>
                    <depends>
                        <field id="enabled">1</field>
                        <field id="cron_send_notifications_enable">1</field>
                    </depends>
                </field>
                <field id="back_in_stock" translate="label comment" type="select" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                    <label>Plantilla correo</label>
                    <source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
                    <comment>Plantilla del correo de notificacion</comment>
                </field>
            </group>
        </section>
    </system>
</config>