getCompletedTests(); $pagination_object = Util::getPaginationObject($tests); $tests = array_slice($tests, $pagination_object->offset, $pagination_object->pageSize); $projects = Project::load(array_column($tests, "project_id")); $can_invoice = Core::$user->getInvoiceAddress() && Core::$user->hasValidPaymentMethod(); View::includeOnce("header", compact("page_title")); View::include("test_list_completed", compact("tests", "can_invoice", "pagination_object")); View::include("modal_test_invoice"); View::includeOnce("footer"); ?>