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

    Edwiser RemUI
    @package theme_remui
    @copyright (c) 2023 WisdmLabs (https://wisdmlabs.com/)
    @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
}}
{{!
    @template core_message/message_drawer_view_search_results_content

    This template will render the search results content in the search page
    of the message drawer.

    Classes required for JS:
    * none

    Data attributes required for JS:
    * All data attributes are required

    Context variables required for this template:
    * userid The logged in user id
    * urls The URLs for the popover

    Example context (json):
    {}

}}

<div class="d-flex flex-column">
    <div class="border-bottom" data-region="all-contacts-container">
        <div data-region="contacts-container"  class="pt-2">
            <h5 class="h-semibold-5 pt-2 p-px-6 edw-header-color">{{#str}} contacts, core_message {{/str}}</h5>
            <div class="list-group edw-msg-body-list" data-region="list"></div>
        </div>
        <div data-region="non-contacts-container" >
            <h5 class="h-semibold-5 pt-2 p-px-6 m-0 edw-header-color">{{#str}} noncontacts, core_message {{/str}}</h5>
            <div class="list-group edw-msg-body-list" data-region="list"></div>
        </div>
        <div class="text-right">
            <button class="btn btn-link text-primary" data-action="load-more-users">
                <span data-region="button-text">{{#str}} loadmore, core_message {{/str}}</span>
                <span data-region="loading-icon-container" class="hidden">{{> core/loading }}</span>
            </button>
        </div>
    </div>
    <div  data-region="messages-container">
        <h5 class="h-semibold-5 pt-2 p-px-6 m-0 edw-header-color">{{#str}} messages, core_message {{/str}}</h5>
        <div class="list-group edw-msg-body-list" data-region="list"></div>
        <div class="text-right">
            <button class="btn btn-link text-primary" data-action="load-more-messages">
                <span data-region="button-text">{{#str}} loadmore, core_message {{/str}}</span>
                <span data-region="loading-icon-container" class="hidden">{{> core/loading }}</span>
            </button>
        </div>
    </div>
    <p class="hidden p-3 text-center" data-region="no-results-container">{{#str}} noresults, core {{/str}}</p>
</div>
