{% extends "base.html" %} {% from "components/ui.html" import page_header, empty_state %} {% block title %}{{ _('Payment Gateways') }} - {{ app_name }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Payment Gateways'} ] %} {{ page_header( icon_class='fas fa-credit-card', title_text='Payment Gateways', subtitle_text='Configure payment processing', breadcrumbs=breadcrumbs, actions_html='Add Gateway' if (current_user.is_admin or has_permission('admin_access')) else None ) }}
{% if gateways %}
{% for gateway in gateways %} {% endfor %}
{{ _('Name') }} {{ _('Provider') }} {{ _('Status') }} {{ _('Mode') }} {{ _('Actions') }}
{{ gateway.name }}
{{ gateway.provider|title }} {% if gateway.is_active %} {{ _('Active') }} {% else %} {{ _('Inactive') }} {% endif %} {% if gateway.is_test_mode %} {{ _('Test Mode') }} {% else %} {{ _('Production') }} {% endif %}
{% else %} {% set action_html = '' %} {% if current_user.is_admin or has_permission('admin_access') %} {% set action_html = '' + _('Add Gateway') + '' %} {% endif %} {{ empty_state( 'fas fa-credit-card', _('No Payment Gateways'), _('Configure a payment gateway to enable online invoice payments.'), actions_html=action_html if action_html else None ) }} {% endif %}
{% endblock %}