{{!
    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) 2023 WisdmLabs (https://wisdmlabs.com/)
    @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

}}
{{!
    @template theme_remui/frontpage_legacy_testimonials
}}
{{#testimoniallist}}
<section id="edwiser-testimonials" role="main">
    <div class="container r-py-16 {{aboutus_layout}}">
        <div class="heading d-flex flex-column align-items-center p-py-14">
            <h4 class="title h-semibold-3">{{{ aboutus_heading }}}</h4>
            {{# aboutus_desc }}
            <span class="desc para-regular-2">{{{ aboutus_desc }}}</span>
            {{/ aboutus_desc }}
        </div>
        <div class="testimonials p-py-14">
            <div id="testimonialCarousel" class="carousel slide" data-ride="carousel" data-interval="4000" data-bs-ride="carousel" data-bs-interval="4000">
              <ol class="carousel-indicators">
                {{# testimonials }}
                    <li data-target="#testimonialCarousel" data-slide-to="{{count}}" data-bs-target="#testimonialCarousel" data-bs-slide-to="{{count}}" class="{{#active}}active{{/active}}"></li>
                {{/ testimonials }}
              </ol>
              <div class="carousel-inner">
                {{# testimonials }}
                <div class="carousel-item {{#active}}active{{/active}}">
                    <div class="carousel-item-wrapper d-flex flex-column flex-gap-6">
                        <div >
                            {{# image }}
                            <span class="avatar current" style="background-image:url({{ image }});">
                            </span>
                            {{/ image }}
                            {{# name }}
                                <div class="font-size-20 text-dark">{{ name }}</div>
                            {{/ name }}
                            {{# designation }}
                                <div class="font-size-14 text-muted">{{ designation }}</div>
                            {{/ designation }}
                        </div>
                        {{# text }}
                            <div class="font-size-14 text-muted text-center">
                                {{{ text }}}
                            </div>
                        {{/ text }}
                    </div>
                </div>
                {{/ testimonials }}
              </div>
              <a class="carousel-control-prev" href="#testimonialCarousel" role="button" data-target="#testimonialCarousel" data-bs-target="#testimonialCarousel" data-slide="prev" data-bs-slide="prev">
                  <span class="carousel-control-prev-icon edw-icon edw-icon-Left-Arrow" aria-hidden="true"></span>
                  <span class="sr-only">Previous</span>
              </a>
              <a class="carousel-control-next" href="#testimonialCarousel" role="button" data-target="#testimonialCarousel" data-bs-target="#testimonialCarousel" data-slide="next" data-bs-slide="next">
                  <span class="carousel-control-next-icon edw-icon edw-icon-Right-Arrow" aria-hidden="true"></span>
                  <span class="sr-only">Next</span>
              </a>
            </div>
        </div>
</div>
</section>
{{/testimoniallist}}
