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

    The student's request is waiting for review.

    Example context (json):
    {"instancename": "InstaPay", "coursename": "Programming", "amount": "500 EGP",
     "submitted": "18 September 2026, 5:00 PM", "filename": "receipt.png", "reference": "123"}
}}
<div class="enrol-instapay card shadow-sm mb-4 enrol-instapay-pending">
    <div class="card-body">
        <div class="d-flex align-items-start gap-3">
            <span class="enrol-instapay-badge" aria-hidden="true">{{#pix}}i/scheduled, core{{/pix}}</span>
            <div class="flex-grow-1">
                <h3 class="h5 mb-1">{{#str}}pendingtitle, enrol_instapay{{/str}}</h3>
                <p class="mb-3 text-muted">{{#str}}pendinglead, enrol_instapay{{/str}}</p>
                <dl class="enrol-instapay-facts mb-0">
                    <div><dt>{{#str}}coursefield, enrol_instapay{{/str}}</dt><dd>{{coursename}}</dd></div>
                    <div><dt>{{#str}}amount, enrol_instapay{{/str}}</dt><dd>{{amount}}</dd></div>
                    <div><dt>{{#str}}submittedon, enrol_instapay{{/str}}</dt><dd>{{submitted}}</dd></div>
                    {{#filename}}<div><dt>{{#str}}receipt, enrol_instapay{{/str}}</dt><dd dir="ltr" class="text-break">{{filename}}</dd></div>{{/filename}}
                    {{#reference}}<div><dt>{{#str}}referenceshort, enrol_instapay{{/str}}</dt><dd dir="ltr">{{reference}}</dd></div>{{/reference}}
                </dl>
            </div>
        </div>
    </div>
</div>
