<?xml version="1.0"?>
<!--
/**
 * Mondial Relay & InPost Shipping Module
 *
 * @author    Magentix
 * @copyright Copyright © 2025 Magentix. All rights reserved.
 * @license   https://www.magentix.fr/en/licence.html Magentix Software Licence
 * @link      https://mondialrelay.magentix.fr/
 */
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
    <group id="locker" translate="label" type="text" sortOrder="250" showInDefault="1" showInWebsite="1" showInStore="1">
        <label>Lockers</label>
        <fieldset_css>mondialrelay-configuration</fieldset_css>
        <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Enabled</label>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
        </field>
        <field id="name" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Name</label>
        </field>
        <field id="price" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Price</label>
            <frontend_model>MondialRelay\Shipping\Block\Adminhtml\System\Config\Form\Field\Price</frontend_model>
            <backend_model>MondialRelay\Shipping\Model\Config\Backend\Serialized\ArraySerialized</backend_model>
            <attribute type="method">pickup</attribute>
            <comment><![CDATA[*In Kgs<br />**Subtotal incl. tax with discount]]></comment>
        </field>
        <field id="fee" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Fee</label>
            <frontend_model>MondialRelay\Shipping\Block\Adminhtml\System\Config\Form\Field\Fee</frontend_model>
            <backend_model>MondialRelay\Shipping\Model\Config\Backend\Serialized\ArraySerialized</backend_model>
            <attribute type="method">pickup</attribute>
            <comment><![CDATA[*Wildcard character * is allowed (e.g. 20*).<br />**Fees for specific postcodes: amount to add to basic price. Fees are applied even if delivery is free.]]></comment>
        </field>
        <field id="specificcountry" translate="label" type="multiselect" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Ship to Specific Countries</label>
            <source_model>MondialRelay\Shipping\Model\Config\Source\Country\Pickup</source_model>
            <can_be_empty>1</can_be_empty>
        </field>
        <field id="insurance" translate="label" type="select" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
            <label>Default Insurance</label>
            <source_model>MondialRelay\Shipping\Model\Config\Source\Insurance</source_model>
        </field>
        <field id="sort_order" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Sort Order</label>
        </field>
    </group>
</include>
