customers.php
3 years ago
index.php
3 years ago
orders.php
3 years ago
plans.php
3 years ago
product-sales.php
3 years ago
sales-earnings.php
3 years ago
subscriptions.php
3 years ago
sales-earnings.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | use ProfilePress\Core\Membership\Models\Plan\PlanEntity; |
| 4 | use ProfilePress\Core\Membership\PaymentMethods\PaymentMethodInterface; |
| 5 | |
| 6 | /** @global PlanEntity[] $membership_plans */ |
| 7 | /** @global PaymentMethodInterface[] $payment_methods */ |
| 8 | |
| 9 | ?> |
| 10 | |
| 11 | <fieldset class="ppress-from-to-wrapper"> |
| 12 | <label for="ppress-order-export-start" class="screen-reader-text"><?php esc_html_e('Set start date', 'wp-user-avatar') ?></label> |
| 13 | <span id="ppress-order-export-start-wrap"><input type="text" name="order-export-start" id="ppress-order-export-start" autocomplete="off" placeholder="<?php esc_html_e('From', 'wp-user-avatar') ?>" class="ppress-export-start ppress_datepicker"></span> |
| 14 | <label for="ppress-order-export-end" class="screen-reader-text"><?php esc_html_e('Set end date', 'wp-user-avatar') ?></label> |
| 15 | <span id="ppress-order-export-end-wrap"><input type="text" name="order-export-end" id="ppress-order-export-end" autocomplete="off" placeholder="<?php esc_html_e('To', 'wp-user-avatar') ?>" class="ppress-export-end ppress_datepicker"></span> |
| 16 | </fieldset> |
| 17 | |
| 18 | <label for="ppress_sales_earnings_export_plan" class="screen-reader-text"><?php esc_html_e('Select Plan', 'wp-user-avatar') ?></label> |
| 19 | <select id="ppress_sales_earnings_export_plan" name="plan_id" class="ppress-select"> |
| 20 | <option value=""><?php esc_html_e('All Membership Plans', 'wp-user-avatar') ?></option> |
| 21 | <?php foreach ($membership_plans as $plan) : ?> |
| 22 | <option value="<?php echo $plan->get_id() ?>"><?php echo $plan->get_name() ?></option> |
| 23 | <?php endforeach; ?> |
| 24 | </select> |
| 25 | |
| 26 | <label for="ppress_order_export_customer" class="screen-reader-text"><?php esc_html_e('Select Customer', 'wp-user-avatar') ?></label> |
| 27 | <select id="ppress_order_export_customer" name="customer_id" class="ppress-select2-field customer_user"> |
| 28 | <option value="all"><?= esc_html__('All Customers', 'wp-user-avatar') ?></option> |
| 29 | </select> |
| 30 | |
| 31 | <label for="ppress_sales_earnings_export_payment_method" class="screen-reader-text"><?php esc_html_e('Select Payment Method', 'wp-user-avatar') ?></label> |
| 32 | <select id="ppress_sales_earnings_export_payment_method" name="payment_method" class="ppress-select"> |
| 33 | <option value=""><?php esc_html_e('All Payment Method', 'wp-user-avatar') ?></option> |
| 34 | <?php foreach ($payment_methods as $payment_method) : ?> |
| 35 | <option value="<?php echo $payment_method->get_id() ?>"><?php echo $payment_method->get_method_title() ?></option> |
| 36 | <?php endforeach; ?> |
| 37 | </select> |