{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}

{% trans_default_domain 'Admin.Orderscustomers.Feature' %}
{% import '@PrestaShop/Admin/macros.html.twig' as ps %}

{% block invoices_generate_by_date %}
  {{ form_start(generateByDateForm, {method: 'POST', action: path('admin_order_invoices_generate_by_date'), attr: {id: 'form-generate-invoices-by-date'}}) }}
  <div class="card">
    <h3 class="card-header">
      <i class="material-icons">date_range</i>
      {{ 'By date'|trans }}
    </h3>
    <div class="card-body">
      <div class="form-wrapper">
        {{ form_widget(generateByDateForm) }}
        {{ form_rest(generateByDateForm) }}
      </div>
    </div>
    <div class="card-footer">
      <div class="d-flex justify-content-end">
        <button class="btn btn-primary" id="generate-pdf-by-date-button">{{ 'Generate PDF file by date'|trans }}</button>
      </div>
    </div>
  </div>
  {{ form_end(generateByDateForm) }}
{% endblock %}
