| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying orders statistics tab Orders statistics page. |
| 4 |
*/ |
| 5 |
?> |
| 6 |
|
| 7 |
<div class="lp-admin-statistics-tab-content"> |
| 8 |
<div class="btn-group btn-group-filter"> |
| 9 |
<button class="btn-filter-time active" type="button" data-filter="today" ><?php _e( 'Today', 'learnpress' ); ?></button> |
| 10 |
<!-- <button class="btn-filter-time" type="button" data-filter="yesterday" ><?php _e( 'Yesterday', 'learnpress' ); ?></button> --> |
| 11 |
<button class="btn-filter-time" type="button" data-filter="last7days" ><?php _e( 'Last 7 days', 'learnpress' ); ?></button> |
| 12 |
<button class="btn-filter-time" type="button" data-filter="last30days" ><?php _e( 'Last 30 days', 'learnpress' ); ?></button> |
| 13 |
<!-- <button class="btn-filter-time" type="button" data-filter="thismonth" ><?php _e( 'This month', 'learnpress' ); ?></button> --> |
| 14 |
<button class="btn-filter-time" type="button" data-filter="last12months"><?php _e( 'Last 12 months', 'learnpress' ); ?></button> |
| 15 |
<button class="btn-filter-time" type="button" data-filter="thisyear" ><?php _e( 'This year', 'learnpress' ); ?></button> |
| 16 |
<button class="btn-filter-time" type="button" data-filter="custom" ><?php _e( 'Custom', 'learnpress' ); ?></button> |
| 17 |
<div class="custom-filter-time"> |
| 18 |
<input type="date" id="ct-filter-1" /> |
| 19 |
<input type="date" id="ct-filter-2"> |
| 20 |
<button class="custom-filter-btn button button-primary" type="button"><?php _e( 'Filter', 'learnpress' ); ?></button> |
| 21 |
</div> |
| 22 |
</div> |
| 23 |
<div class="statistics-content"> |
| 24 |
<input class="statistics-type" type="hidden" value="orders-statistics"> |
| 25 |
<div class="statistics-group group-statistic-order"> |
| 26 |
<div class="statistics-item"> |
| 27 |
<span class="statistics-item-title"><?php _e( 'Total Orders', 'learnpress' ); ?></span> |
| 28 |
<span class="statistics-item-count total-order-count">0</span> |
| 29 |
</div> |
| 30 |
<div class="statistics-item"> |
| 31 |
<span class="statistics-item-title"><?php _e( 'Completed Orders', 'learnpress' ); ?></span> |
| 32 |
<span class="statistics-item-count completed-order-count">0</span> |
| 33 |
</div> |
| 34 |
<div class="statistics-item"> |
| 35 |
<span class="statistics-item-title"><?php _e( 'Proccessing Orders', 'learnpress' ); ?></span> |
| 36 |
<span class="statistics-item-count processing-order-count">0</span> |
| 37 |
</div> |
| 38 |
<div class="statistics-item"> |
| 39 |
<span class="statistics-item-title"><?php _e( 'Pending Orders', 'learnpress' ); ?></span> |
| 40 |
<span class="statistics-item-count pending-order-count">0</span> |
| 41 |
</div> |
| 42 |
<div class="statistics-item"> |
| 43 |
<span class="statistics-item-title"><?php _e( 'Cancelled Orders', 'learnpress' ); ?></span> |
| 44 |
<span class="statistics-item-count cancelled-order-count">0</span> |
| 45 |
</div> |
| 46 |
<div class="statistics-item"> |
| 47 |
<span class="statistics-item-title"><?php _e( 'Fail Orders', 'learnpress' ); ?></span> |
| 48 |
<span class="statistics-item-count failed-order-count">0</span> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
<h3 class="statistics-title"><?php _e( 'Completed Orders', 'learnpress' ); ?></h3> |
| 52 |
<div id="orders-chart" class="statistics-chart-wrapper"> |
| 53 |
<?php lp_skeleton_animation_html( 10, 100 ); ?> |
| 54 |
<canvas id="orders-chart-content" style="display: none;"></canvas> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
|