index.php
26 lines
| 1 | <div class="wrap"> |
| 2 | <?php \SureCart::render( 'layouts/partials/admin-index-styles' ); ?> |
| 3 | <style>.column-invoice { width: 175px}</style> |
| 4 | <?php |
| 5 | $live_mode = isset( $_GET['live_mode'] ) ? sanitize_text_field( wp_unslash( $_GET['live_mode'] ) ) : 'true'; |
| 6 | |
| 7 | \SureCart::render( |
| 8 | 'layouts/partials/admin-index-header', |
| 9 | [ |
| 10 | 'title' => __( 'Invoices', 'surecart' ), |
| 11 | 'after_title' => \SureCart::view( 'admin/invoices/new-invoice-button' )->toString(), |
| 12 | ] |
| 13 | ); |
| 14 | ?> |
| 15 | |
| 16 | <?php $table->search_form( __( 'Search Invoices', 'surecart' ), 'sc-search-invoices' ); ?> |
| 17 | |
| 18 | <form id="posts-filter" method="get"> |
| 19 | <?php $table->views(); ?> |
| 20 | <?php $table->display(); ?> |
| 21 | |
| 22 | <div id="ajax-response"></div> |
| 23 | </form> |
| 24 | </div> |
| 25 | |
| 26 |