analytics
4 days ago
home
4 days ago
apply_for_instructor.php
4 days ago
dashboard-empty.php
4 days ago
home.php
4 days ago
instructor-request-alert.php
4 days ago
logged-in.php
4 days ago
profile-statistics.php
4 days ago
registration.php
4 days ago
profile-statistics.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tutor dashboard profile statistics. |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | use Tutor\Components\SvgIcon; |
| 14 | ?> |
| 15 | |
| 16 | <h5 class="tutor-statistic-title"> |
| 17 | <?php esc_html_e( 'Statistics', 'tutor' ); ?> |
| 18 | </h5> |
| 19 | |
| 20 | |
| 21 | <div class="tutor-statistic-cards"> |
| 22 | <?php foreach ( $statistics as $stat ) : ?> |
| 23 | <div class="tutor-statistic-card"> |
| 24 | <div class="tutor-statistic-card-icon"> |
| 25 | <?php |
| 26 | SvgIcon::make() |
| 27 | ->name( $stat['icon'] ) |
| 28 | ->size( 24 ) |
| 29 | ->attr( 'class', $stat['icon_class'] ) |
| 30 | ->render(); |
| 31 | ?> |
| 32 | </div> |
| 33 | <div class="tutor-statistic-card-content"> |
| 34 | <h3 class="tutor-statistic-card-value tutor-my-none"><?php echo esc_html( $stat['value'] ); ?></h3> |
| 35 | <div class="tutor-statistic-card-label"><?php echo esc_html( $stat['label'] ); ?></div> |
| 36 | </div> |
| 37 | </div> |
| 38 | <?php endforeach; ?> |
| 39 | </div> |
| 40 |