<%# Page admins see upon signing in %>
<%# ARGUMENTS: numAll: number of questions pending review; numUser: number of questions pending review that the user has not already reviewed or skipped. %>

<%- include("../partials/header") -%>
<%- include("./partials/usaboNav") -%>

<h1 class="my-5 container text-center">USABO Mode Admin Control Center</h1>

<div class="container">
    <%- include ("../partials/flashes") -%>
</div>

<div class="jumbotron container">

    <h3 class="mb-4">Database Control:</h3>
    <a class="btn btn-primary btn-lg w-100 my-2" href="/admin/addUSABOQuestion">Add Question</a>
    <a class="btn btn-primary btn-lg w-100 my-2" href="/reviewer/reviewUSABOQuestions">Review Questions</a>
    <a class="btn btn-primary btn-lg w-100 my-2" href="/admin/allUSABOQuestions">All Questions</a>
    <div class="w-100 text-center" style="font-size: 1.4rem">
        (you have <%= numUser %> questions pending review, <%= numAll %> total)<br>
        <script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"> </script>
        <script>
        function clearskipcookie() {
            Cookies.remove('skipQuestions');
        }
        </script>
        <button class="btn btn-warning" onclick="clearskipcookie()">clear skipped questions</button>
    </div>
</div>

<%- include("../partials/footer") -%>
