{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    Edwiser RemUI
    @package   theme_remui
    @copyright (c) 2020 WisdmLabs (https://wisdmlabs.com/)
    @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

}}
{{!
    @template theme_remui/activity_navigation

    Display the activity navigation for all activities in a course

    Context variables required for this template:

    Example context (json):
    {
    }
}}
<table class="table admintable">
    <thead>
        <tr>
            <th>
                {{#str}} date, local_edwiserreports {{/str}}
            </th>
            <th>
                {{#str}} noofactiveusers, local_edwiserreports {{/str}}
            </th>
            <th>
                {{#str}} noofenrolledusers, local_edwiserreports {{/str}}
            </th>
            <th>
                {{#str}} noofcompletedusers, local_edwiserreports {{/str}}
            </th>
        </tr>
    </thead>
    <tbody>
        {{#activeusers}}
        <tr>
            <td>
                <span class="d-none">{{filter}}</span>
                {{{date}}}
            </td>
            <td>
                <a href="javascript:void(0)" class="w-full modal-trigger" data-action="activeusers" data-filter="{{filter}}">
                    {{activeusers}}
                </a>
            </td>
            <td>
                <a href="javascript:void(0)" class="w-full modal-trigger" data-action="enrolments" data-filter="{{filter}}">
                    {{courseenrolment}}
                </a>
            </td>
            <td>
                <a href="javascript:void(0)" class="w-full modal-trigger" data-action="completions" data-filter="{{filter}}">
                    {{coursecompletion}}
                </a>
            </td>
        </tr>
        {{/activeusers}}
    </tbody>
</table>
