{{!
    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.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template core_courseformat/local/course_format/sectionnavigation

    Displays the course section navigation.

    Example context (json):
    {
        "hasprevious": true,
        "previousurl": "#",
        "larrow": "&#x25C4;",
        "previousname": "Section 3",
        "hasnext": true,
        "rarrow": "&#x25BA;",
        "nexturl": "#",
        "nextname": "Section 5"
    }
}}
<div class="section-navigation d-flex justify-content-between mb-4">
    <div class="prevsection">
        {{#hasprevious}}
            <a href="{{{previousurl}}}" class="{{#previoushidden}} dimmed_text {{/previoushidden}} btn btn-xs btn-secondary" aria-label="{{{previousname}}}" title="{{{previousname}}}" data-toggle="tooltip">
                <span class="btn--icon"><svg class="" width="18" height="18" stroke-width="2" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
                        <path d="M18.5 12H6m0 0l6-6m-6 6l6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                </span>
            </a>
        {{/hasprevious}}
    </div>
    <div class="nextsection">
        {{#hasnext}}
            <a href="{{{nexturl}}}" class="{{#nexthidden}} dimmed_text {{/nexthidden}} btn btn-xs btn-secondary" aria-label="{{{nextname}}}" title="{{{nextname}}}" data-toggle="tooltip">
                <span class="btn--icon">
                    <svg width="18" height="18" stroke-width="2" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
                        <path d="M6 12h12.5m0 0l-6-6m6 6l-6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                </span>
            </a>
        {{/hasnext}}
    </div>
</div>