{{!
    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 theme_almondb/frontpage/block07_1

    Moodle template for the frontpage block07 design 1.
}}
<div class="block07design1 container">
    {{#block07}}
    <div class="card mb-3 h-100"  >
        <div class="row g-0">
            <div class="col-lg-4 "> 
                <div class="single-course" style="background-image: url({{imgurl}});">
                {{#block07priceshow}}
                    <div class="enrol">
                        {{cost}} {{currency}}
                    </div>
                {{/block07priceshow}}
                </div>
            </div>
            <div class="col-lg-8 " >
                <div class="card-body">
                    <div class="d-inline-flex" data-bs-toggle="tooltip" data-bs-placement="top" title="Teacher">
                        <div class="h6 hytext"> {{{ userpicture }}} {{{teachername}}}</div>
                    </div>
                    <h5 class="card-title post-heading">
                        <a href="{{courselink}}" class="text-decoration-none">
                            {{#block07shortname}}{{shortname}}{{/block07shortname}}
                            {{#block07fullname}}{{fullname}}{{/block07fullname}}
                        </a>
                    </h5>
                    <div class="card-text">{{#shortentext}} 200, {{{summary}}} {{/shortentext}}</div>
                    <span class="">&nbsp;</span>
                    <div class="card-text hytext" style="position:absolute; bottom:10px; width:60%; font-size: 13px; font-weight: 500;">
                        <span data-bs-toggle="tooltip" data-bs-placement="top" title="{{#str}}block07tooltipcategory, theme_almondb {{/str}}">
                            <i class="fa fa-plus-square" aria-hidden="true"></i>
                            <a href="{{categorylink}}" class="text-decoration-none"> {{categoryName}} </a>
                        </span>
                        <span class="ps-2 pe-2" data-bs-toggle="tooltip" data-bs-placement="top" title="{{#str}}block07tooltipenrolled, theme_almondb {{/str}}">
                            <i class="fa fa-users" aria-hidden="true">  {{studentscount}}</i>
                        </span>
                        <span class="float-end d-none d-sm-block" data-bs-toggle="tooltip" data-bs-placement="top" title="{{#str}}block07tooltiplastdate, theme_almondb {{/str}}">
                            <i class="fa fa-calendar" aria-hidden="true"></i> {{update}}
                        </span>
                    </div>    
                </div>
            </div>
        </div>
    </div>
    {{/block07}}
</div>
