{{!
    This file is part of Moodle - https://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 <https://www.gnu.org/licenses/>.
}}

{{!
    @template theme_nice/nice_my

    Custom dashboard layout template for theme_nice.

    Displays the "My Dashboard" page layout with optional side blocks,
    the header, page title, and the main content.

    Context variables required for this template:
    * bodyattributes - HTML attributes for the <body> tag.
    * output - Core renderer object containing standard methods:
        * output.standard_top_of_body_html
        * output.navbar
        * output.full_header
        * output.region_main_settings_menu
        * output.course_content_header
        * output.main_content
        * output.activity_navigation
        * output.course_content_footer
        * output.standard_after_main_region_html
        * output.user_menu
    * pageheading - Title for the page.
    * hasblocks - Whether the page layout has side blocks.
    * sidepreblocks - The HTML of the blocks in the side-pre region.
    * has_blocks_above_content - Whether there are blocks above main content.
    * blocks_above_content - HTML for blocks above main content.
    * has_blocks_below_content - Whether there are blocks below main content.
    * blocks_below_content - HTML for blocks below main content.

    Example context (JSON):
    {
        "bodyattributes": "class=\"someclasses\"",
        "output": {
            "standard_top_of_body_html": "<div>top stuff</div>",
            "navbar": "<ul>breadcrumb</ul>",
            "full_header": "<header>Header HTML</header>",
            "region_main_settings_menu": "<div>settings menu</div>",
            "course_content_header": "<div>header content</div>",
            "main_content": "<main>Main dashboard stuff</main>",
            "activity_navigation": "<nav>Activity nav</nav>",
            "course_content_footer": "<footer>footer content</footer>",
            "standard_after_main_region_html": "<div>after main</div>",
            "user_menu": "<div>user profile menu</div>"
        },
        "pageheading": "My Dashboard",
        "hasblocks": true,
        "sidepreblocks": "<aside>Sidebar blocks HTML</aside>",
        "has_blocks_above_content": true,
        "blocks_above_content": "<div>Above content blocks</div>",
        "has_blocks_below_content": true,
        "blocks_below_content": "<div>Below content blocks</div>"
    }
}}


{{> theme_boost/head }}

<body {{{ bodyattributes }}}>
{{> core/local/toast/wrapper}}
<div id="wrapper">
{{> theme_boost/navbar }}
{{{ output.standard_top_of_body_html }}}
<div class="nice-dashboard-container">
   <div class="page-title-area">
      <div class="container">
         <div class="page-title-content">
            {{{ output.navbar }}}
            <h1>{{{ pageheading }}}</h1>
         </div>
      </div>
   </div>
   <div class="dashboard_main_content">
      {{{ output.full_header }}}
      <div class="container">
         <div class="row nice-dashboard-sidebar-items">
            {{{ output.user_menu }}}
         </div>
      </div>
      <div class="container">
         <div class="main_content_container">
            <div class="row">
               {{^hasblocks}}
               <div class="col-lg-12">
                  {{/hasblocks}}
                  {{#hasblocks}}
                  <div class="col-lg-8">
                     {{/hasblocks}}
                     {{{ output.region_main_settings_menu }}}
                     {{#has_blocks_above_content}}
                     {{{ blocks_above_content }}}
                     {{/has_blocks_above_content}}
                     {{{ output.course_content_header }}}
                     {{{ output.main_content }}}
                     {{{ output.activity_navigation }}}
                     {{{ output.course_content_footer }}}
                     {{#has_blocks_below_content}}
                     {{{ blocks_below_content }}}
                     {{/has_blocks_below_content}}
                  </div>
                  {{#hasblocks}}
                  <div class="col-lg-4">
                     <div class="nice-sidebar-region-container" aria-label="{{#str}}blocks{{/str}}">
                        {{{ sidepreblocks }}}
                     </div>
                  </div>
                  {{/hasblocks}}
               </div>
            </div>
         </div>
      </div>
      {{> theme_boost/footer }}
   </div>
   <!--End nice-dashboard-container -->
</div>
{{{ output.standard_after_main_region_html }}}
</body>
</html>
{{#js}}
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader'], function() {
M.util.js_complete('theme_boost/loader');
});
M.util.js_pending('theme_boost/drawer');
require(['theme_boost/drawer'], function(mod) {
mod.init();
M.util.js_complete('theme_boost/drawer');
});
{{/js}}