<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="sales_order_shipment.grid.container">
            <block class="Magento\Backend\Block\Widget\Grid" name="sales.order_shipment.grid" as="grid">
                <arguments>
                    <argument name="id" xsi:type="string">order_shipments</argument>
                    <argument name="dataSource" xsi:type="object" shared="false">Magento\Sales\Model\ResourceModel\Order\Shipment\Order\Grid\Collection</argument>
                    <argument name="use_ajax" xsi:type="boolean">true</argument>
                    <argument name="default_sort" xsi:type="string">created_at</argument>
                    <argument name="default_dir" xsi:type="string">DESC</argument>
                    <argument name="grid_url" xsi:type="url" path="sales/order/shipments">
                        <param name="_current">1</param>
                    </argument>
                </arguments>
                <block class="Magento\Backend\Block\Widget\Grid\ColumnSet" as="grid.columnSet" name="sales.order_shipment.grid.columnSet">
                    <arguments>
                        <argument name="id" xsi:type="string">order_shipments</argument>
                        <argument name="rowUrl" xsi:type="array">
                            <item name="path" xsi:type="string">adminhtml/order_shipment/view</item>
                            <item name="extraParamsTemplate" xsi:type="array">
                                <item name="shipment_id" xsi:type="string">getId</item>
                                <item name="order_id" xsi:type="string">getOrderId</item>
                            </item>
                        </argument>
                    </arguments>
                    <block class="Magento\Backend\Block\Widget\Grid\Column" name="sales.order_shipment.grid.columnSet.real_shipment_id" as="real_shipment_id">
                        <arguments>
                            <argument name="header" xsi:type="string" translate="true">Shipment</argument>
                            <argument name="type" xsi:type="string">text</argument>
                            <argument name="index" xsi:type="string">increment_id</argument>
                            <argument name="id" xsi:type="string">real_shipment_id</argument>
                            <argument name="header_css_class" xsi:type="string">col-memo</argument>
                            <argument name="column_css_class" xsi:type="string">col-memo</argument>
                        </arguments>
                    </block>
                    <block class="Magento\Backend\Block\Widget\Grid\Column" name="sales.order_shipment.grid.columnSet.shipping_name" as="shipping_name">
                        <arguments>
                            <argument name="id" xsi:type="string">shipping_name</argument>
                            <argument name="header" xsi:type="string" translate="true">Ship-to Name</argument>
                            <argument name="index" xsi:type="string">shipping_name</argument>
                            <argument name="header_css_class" xsi:type="string">col-name</argument>
                            <argument name="column_css_class" xsi:type="string">col-name</argument>
                        </arguments>
                    </block>
                    <block class="Magento\Backend\Block\Widget\Grid\Column" name="sales.order_shipment.grid.columnSet.created_at" as="created_at">
                        <arguments>
                            <argument name="header" xsi:type="string" translate="true">Ship Date</argument>
                            <argument name="type" xsi:type="string">datetime</argument>
                            <argument name="index" xsi:type="string">created_at</argument>
                            <argument name="id" xsi:type="string">created_at</argument>
                            <argument name="header_css_class" xsi:type="string">col-period</argument>
                            <argument name="column_css_class" xsi:type="string">col-period</argument>
                        </arguments>
                    </block>
                    <block class="Magento\Backend\Block\Widget\Grid\Column" name="sales.order_shipment.grid.columnSet.total_qty" as="total_qty">
                        <arguments>
                            <argument name="id" xsi:type="string">total_qty</argument>
                            <argument name="header" xsi:type="string" translate="true">Total Quantity</argument>
                            <argument name="type" xsi:type="string">number</argument>
                            <argument name="index" xsi:type="string">total_qty</argument>
                            <argument name="header_css_class" xsi:type="string">col-qty</argument>
                            <argument name="column_css_class" xsi:type="string">col-qty</argument>
                        </arguments>
                    </block>
                </block>
            </block>
        </referenceBlock>
    </body>
</page>
