<?xml version="1.0"?>
<!--
/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_EditOrder
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="sales_order_create_item_price"/>
    <body>
        <referenceContainer name="content">
            <block class="Mageplaza\EditOrder\Block\Adminhtml\Order\Edit\OrderItems" name="order_items_form" template="Mageplaza_EditOrder::order/edit/items/form.phtml">
                <block class="Magento\Sales\Block\Adminhtml\Order\Create\Items" name="order_items" template="Mageplaza_EditOrder::order/edit/items/items.phtml">
                    <block class="Mageplaza\EditOrder\Block\Adminhtml\Order\Edit\Items\Grid" name="items_grid" template="Mageplaza_EditOrder::order/edit/items/grid.phtml">
                        <block class="Mageplaza\EditOrder\Order\Create\Coupons" name="coupons" template="Mageplaza_EditOrder::order/edit/items/coupons/form.phtml" />
                    </block>
                </block>
                <block class="Magento\Sales\Block\Adminhtml\Order\Create\Search" template="Magento_Sales::order/create/abstract.phtml" name="search">
                    <block class="Mageplaza\EditOrder\Block\Adminhtml\Order\Edit\Items\Search\Grid" name="search.grid" as="grid"/>
                </block>
                <referenceBlock name="search.grid">
                    <arguments>
                        <argument name="view_model" xsi:type="object">Magento\Backend\ViewModel\LimitTotalNumberOfProductsInGrid</argument>
                    </arguments>
                </referenceBlock>
            </block>
            <block class="Magento\Backend\Block\Template" name="order_js" template="Magento_Sales::order/create/js.phtml"/>
        </referenceContainer>
    </body>
</page>
