{% extends "admin_base.html" %} {% import "macros/admin_crud_list.html" as crud %} {% import "macros/admin_management_header.html" as mh %} {% import "macros/modal.html" as modal %} {% import "macros/loading_spinner.html" as spinner %} {% block page_title %}Credit Accounts Management{% endblock %} {% block admin_content %}
{% set currency_sym = currency_symbol | default(value='₹') %} {{ mh::management_header_simple(title="Credit Accounts", subtitle="Manage customer credit lines and account statuses.") }} {% if data_error %} {% else %}
Total Credit Granted
{{ currency_sym }}{{ total_limit_v | default(value=0) | price }}
Total Outstanding
{{ currency_sym }}{{ total_outstanding_v | default(value=0) | price }}
Total Interest Due
{{ currency_sym }}{{ total_interest_v | default(value=0) | price }}
{% endif %} {{ crud::shell_open(config_url="/plugins/store-credit/assets/admin/accounts_list.json", mount_id="store-credit-accounts-list", custom_mount=true) }}
{{ spinner::table_skeleton(colspan=8, lines=4, label="Loading credit accounts…") }}
{{ crud::shell_close() }}
{{ modal::modal(id="creditLineModal", title='Grant Credit', body_html='
') }} {% endblock %} {% block scripts %} {% endblock %}