chart-body.php
4 years ago
earning-report-top-menu.php
4 years ago
report-date_range.php
4 years ago
report-last_month.php
4 years ago
report-last_week.php
4 years ago
report-last_year.php
4 years ago
report-this_month.php
4 years ago
report-this_week.php
4 years ago
report-this_year.php
4 years ago
report.php
4 years ago
statement.php
4 years ago
statements.php
4 years ago
report.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying Instructor Earning Report |
| 4 | * |
| 5 | * @since v.1.1.2 |
| 6 | * |
| 7 | * @author Themeum |
| 8 | * @url https://themeum.com |
| 9 | * |
| 10 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | |
| 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 16 | exit; |
| 17 | } |
| 18 | |
| 19 | $sub_page = 'this_month'; |
| 20 | if ( ! empty( $_GET['time_period'] ) ) { |
| 21 | $sub_page = sanitize_text_field( $_GET['time_period'] ); |
| 22 | } |
| 23 | if ( ! empty( $_GET['date_range_from'] ) && ! empty( $_GET['date_range_to'] ) ) { |
| 24 | $sub_page = 'date_range'; |
| 25 | } |
| 26 | ?> |
| 27 | |
| 28 | <h3><?php _e( 'Earning Report', 'tutor' ); ?></h3> |
| 29 | <div class="tutor-dashboard-inline-links"> |
| 30 | <ul> |
| 31 | <li><a href="<?php echo esc_url( tutor_utils()->get_tutor_dashboard_page_permalink( 'earning' ) ); ?>"> <?php _e( 'Earning' ); ?></a> |
| 32 | </li> |
| 33 | <li class="active"><a href="<?php echo esc_url( tutor_utils()->get_tutor_dashboard_page_permalink( 'earning/report' ) ); ?>"> <?php _e( 'Report' ); ?> </a> |
| 34 | </li> |
| 35 | <li> |
| 36 | <a href="<?php echo esc_url( tutor_utils()->get_tutor_dashboard_page_permalink( 'earning/statements' ) ); ?>"> |
| 37 | <?php _e( 'Statements', 'tutor' ); ?> </a> |
| 38 | </li> |
| 39 | </ul> |
| 40 | </div> |
| 41 | |
| 42 | |
| 43 | <?php |
| 44 | tutor_load_template( 'dashboard.earning.earning-report-top-menu', compact( 'sub_page' ) ); |
| 45 | tutor_load_template( 'dashboard.earning.report-' . $sub_page ); |
| 46 | ?> |
| 47 |