{{!
    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 <http://www.gnu.org/licenses/>.
}}
{{!
    @template format_ludilearn/filename

    Example context (json):
    {}
}}

<div class="avatar-inventory">
    {{# inventory}}
        <h4>{{ slotname }}</h4>
        <div class="avatar-slot">
            {{# items}}
                <div class="avatar-item
                {{#equiped}} avatar-item-equiped {{/equiped}}
                    {{#owned}} avatar-item-owned {{/owned}}
                avatar-slot-{{ slot }}"
                     data-slot="{{ slot }}" data-theme="{{ theme }}">
                    {{#owned}}
                        <img class="avatar-item-img" src="{{config.wwwroot}}/course/format/ludilearn/pix/{{ world }}/avatar/items/icons/icon-0{{slot}}-{{theme}}.svg" alt="Image item {{slot}}">
                    {{/owned}}
                    {{^owned}}
                        <img class="avatar-item-img" src="{{config.wwwroot}}/course/format/ludilearn/pix/{{ world }}/avatar/item_icon_default.svg" alt="Image item {{slot}}">
                    {{/owned}}
                </div>
            {{/items}}
        </div>
    {{/inventory}}
</div>