chart-body.php
5 years ago
earning-report-top-menu.php
5 years ago
report-date_range.php
5 years ago
report-last_month.php
5 years ago
report-last_week.php
5 years ago
report-last_year.php
5 years ago
report-this_month.php
5 years ago
report-this_week.php
5 years ago
report-this_year.php
5 years ago
report.php
5 years ago
statement.php
5 years ago
statements.php
5 years ago
report.php
45 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 | $sub_page = 'this_month'; |
| 19 | if ( ! empty($_GET['time_period'])){ |
| 20 | $sub_page = sanitize_text_field($_GET['time_period']); |
| 21 | } |
| 22 | if ( ! empty($_GET['date_range_from']) && ! empty($_GET['date_range_to'])){ |
| 23 | $sub_page = 'date_range'; |
| 24 | } |
| 25 | ?> |
| 26 | |
| 27 | <h3><?php _e('Earning Report', 'tutor'); ?></h3> |
| 28 | <div class="tutor-dashboard-inline-links"> |
| 29 | <ul> |
| 30 | <li><a href="<?php echo tutor_utils()->get_tutor_dashboard_page_permalink('earning'); ?>"> <?php _e('Earning'); ?></a> |
| 31 | </li> |
| 32 | <li class="active"><a href="<?php echo tutor_utils()->get_tutor_dashboard_page_permalink('earning/report'); ?>"> <?php _e('Report'); ?> </a> |
| 33 | </li> |
| 34 | <li> |
| 35 | <a href="<?php echo tutor_utils()->get_tutor_dashboard_page_permalink('earning/statements'); ?>"> |
| 36 | <?php _e('Statements', 'tutor'); ?> </a> |
| 37 | </li> |
| 38 | </ul> |
| 39 | </div> |
| 40 | |
| 41 | |
| 42 | <?php |
| 43 | tutor_load_template('dashboard.earning.earning-report-top-menu', compact('sub_page')); |
| 44 | tutor_load_template('dashboard.earning.report-'.$sub_page); |
| 45 | ?> |