at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
views
/
pages
/
quiz_attempts.php
run:
R
W
Run
ecommerce
DIR
2026-04-14 05:34:27
R
W
Run
tools
DIR
2026-04-14 05:34:27
R
W
Run
add_new_instructor.php
5.02 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
addons.php
4.41 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
announcements.php
4.11 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
answer.php
3.54 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
course-builder.php
809 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
course-list.php
18.74 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
enable_disable_addons.php
245 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
feature-promotion.php
1.29 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
get-pro.php
567 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
instructors.php
20.32 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
question_answer.php
2.45 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
quiz_attempts.php
3.52 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
students.php
6.37 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
tools.php
1.45 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
view_attempt.php
2.06 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
welcome.php
10.32 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
whats-new.php
15.74 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
withdraw_requests.php
26.55 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
error_log
up
📄
quiz_attempts.php
Save
<?php /** * Quiz Attempts List Template. * * @package Tutor\Views * @subpackage Tutor\QuizAttempts * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 2.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } use TUTOR\Input; use Tutor\Models\CourseModel; use Tutor\Models\QuizModel; if ( is_numeric( Input::get( 'view_quiz_attempt_id' ) ) ) { include tutor()->path . 'views/pages/view_attempt.php'; return; } $quiz_attempts = tutor_lms()->q_attempt; //phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited $user_id = Input::get( 'user_id', '' ); $course_id = Input::get( 'course-id', '' ); $order = Input::get( 'order', 'DESC' ); $date = Input::has( 'date' ) ? tutor_get_formated_date( 'Y-m-d', Input::get( 'date' ) ) : ''; $search = Input::get( 'search', '' ); /** * Determine active tab */ $active_tab = Input::get( 'data', 'all' ); /** * Pagination data */ $paged = Input::get( 'paged', 1, Input::TYPE_INT ); $per_page = tutor_utils()->get_option( 'pagination_per_page' ); $offset = ( $per_page * $paged ) - $per_page; $quiz_attempts_list = QuizModel::get_quiz_attempts( $offset, $per_page, $search, $course_id, $date, $order, $active_tab, false, true ); $total = QuizModel::get_quiz_attempts( $offset, $per_page, $search, $course_id, $date, $order, $active_tab, true, true ); //phpcs:enable /** * Navbar data to make nav menu */ $navbar_data = array( 'page_title' => $quiz_attempts->page_title, ); $filters = array( 'bulk_action' => $quiz_attempts->bulk_action, 'bulk_actions' => $quiz_attempts->prepare_bulk_actions(), 'ajax_action' => 'tutor_quiz_attempts_bulk_action', 'filters' => array( array( 'label' => __( 'Courses', 'tutor' ), 'field_type' => 'select', 'field_name' => 'course-id', 'options' => CourseModel::get_course_dropdown_options(), 'searchable' => true, 'value' => Input::get( 'course-id', '' ), ), array( 'label' => __( 'Status', 'tutor' ), 'field_type' => 'select', 'field_name' => 'data', 'options' => $quiz_attempts->tabs_key_value( $user_id, $date, $search, $course_id ), 'searchable' => false, 'value' => Input::get( 'data', '' ), ), array( 'label' => __( 'Date', 'tutor' ), 'field_type' => 'date', 'field_name' => 'date', 'show_label' => true, 'value' => Input::get( 'date', '' ), ), ), ); ?> <div class="tutor-admin-wrap"> <?php /** * Load Templates with data. */ $navbar_template = tutor()->path . 'views/elements/list-navbar.php'; $filters_template = tutor()->path . 'views/elements/list-filters.php'; tutor_load_template_from_custom_path( $navbar_template, $navbar_data ); tutor_load_template_from_custom_path( $filters_template, $filters ); ?> <div class="tutor-admin-container tutor-admin-container-lg tutor-mt-16"> <?php tutor_load_template_from_custom_path( tutor()->path . '/views/quiz/attempt-table.php', array( 'attempt_list' => $quiz_attempts_list, 'context' => 'backend-dashboard-students-attempts', ) ); ?> <div class="tutor-admin-page-pagination-wrapper tutor-mt-32"> <?php /** * Prepare pagination data & load template */ if ( $total > $per_page ) { $pagination_data = array( 'total_items' => $total, 'per_page' => $per_page, 'paged' => $paged, ); $pagination_template = tutor()->path . 'views/elements/pagination.php'; tutor_load_template_from_custom_path( $pagination_template, $pagination_data ); } ?> </div> </div> </div>