{{!
    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 enrol_instapay/login

    Sign-in prompt for visitors and guests.

    Example context (json):
    {"instancename": "InstaPay", "coursename": "Programming", "amount": "500 EGP", "loginurl": "#"}
}}
<div class="enrol-instapay card shadow-sm mb-4">
    <div class="card-body">
        <div class="d-flex flex-wrap align-items-center justify-content-between gap-2 mb-2">
            <h3 class="h5 mb-0">{{instancename}}</h3>
            <span class="enrol-instapay-amount">{{amount}}</span>
        </div>
        <p class="text-muted mb-3">{{#str}}loginrequired, enrol_instapay, {{coursename}}{{/str}}</p>
        <a class="btn btn-primary" href="{{loginurl}}">{{#str}}login{{/str}}</a>
    </div>
</div>
