{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "macros/toolbar.html.twig" as toolbar %} {% import "macros/datatables.html.twig" as tables %} {% import "invoice/actions.html.twig" as actions %} {% import "invoice/macros.html.twig" as macros %} {% set columns = { 'date': {'class': 'alwaysVisible w-min', 'orderBy': false}, 'user': {'class': 'hidden-xs hidden-sm text-nowrap hidden', 'orderBy': false}, 'customer': {'class': 'hidden-xs hidden-sm text-nowrap', 'orderBy': false}, 'invoice_number': {'class': 'hidden-xs hidden-sm text-center w-min', 'title': 'invoice.number'|trans, 'orderBy': false}, 'due_date': {'class': 'hidden-xs text-center w-min', 'title': 'invoice.due_days'|trans, 'orderBy': false}, 'payment_date': {'class': 'hidden-xs hidden text-center w-min', 'title': 'invoice.payment_date'|trans, 'orderBy': false}, 'status': {'class': 'text-center alwaysVisible w-min', 'orderBy': false}, 'subtotal': {'class': 'hidden-xs text-center w-min hidden', 'title': 'invoice.subtotal'|trans, 'orderBy': false}, 'tax': {'class': 'hidden-xs text-center w-min hidden', 'title': 'invoice.tax'|trans, 'orderBy': false}, 'total_rate': {'class': 'hidden-xs text-right w-min', 'orderBy': false}, 'actions': {'class': 'actions alwaysVisible', 'orderBy': false}, } %} {% set tableName = 'invoices' %} {% block page_title %}{{ 'invoice.title'|trans }}{% endblock %} {% block page_actions %}{{ actions.invoice_listing('index') }}{% endblock %} {% block page_search %}{{ toolbar.dropDownSearch(toolbarForm) }}{% endblock %} {% block main_before %} {{ tables.data_table_column_modal(tableName, columns) }} {% endblock %} {% block main %} {% if entries is empty %} {{ widgets.nothing_found() }} {% else %} {{ tables.datatable_header(tableName, columns, query, {}) }} {% for entry in entries %}