<div class="tab tab-pane" id="gls_poland_consignments">
  <div class="card card-details mb-0">
    <div class="card-header d-none d-print-block">
      {{ 'GLS consignments'|trans({}, 'Modules.Glspoland.Order') }}
    </div>
    <div class="card-body">
      {% include '@Modules/glspoland/views/templates/hook/_admin_order_parcel_shop.html.twig' with { parcel_shop: parcel_shop } %}
      {% if can_view_grid and grid is not empty %}
        {% embed '@PrestaShop/Admin/Common/Grid/grid_panel.html.twig' %}
          {% block grid_view_block %}
            {% embed '@PrestaShop/Admin/Common/Grid/grid.html.twig' %}
              {% block grid_footer_row %}{% endblock %}
            {% endembed %}
          {% endblock %}

          {% block grid_panel_footer %}
            <div class="card-footer text-right d-print-none">
              <a class="btn btn-outline-secondary" href="{{ url('admin_gls_poland_consignments_index') }}">
                {{ 'Go to consignments list'|trans({}, 'Modules.Glspoland.Order') }}
              </a>
              {% if can_create %}
                <button
                    type="button"
                    class="btn btn-primary js-create-gls-poland-consignment"
                    data-url="{{ path('admin_gls_poland_orders_create_consignment', {
                      'id': order_id,
                      'liteDisplaying': true,
                    }) }}"
                    data-modal-title="{{ 'Create new consignment'|trans({}, 'Modules.Glspoland.Order') }}"
                >
                  {{ 'New consignment'|trans({}, 'Modules.Glspoland.Order') }}
                </button>
                <script src="{{ asset('js/admin/order/view.js', 'GlsPoland') }}"></script>
              {% endif %}
            </div>
          {% endblock %}
        {% endembed %}
      {% endif %}
    </div>
  </div>
</div>
