{% extends "Global/layout.html.twig" %} {% set pagetitle = 'Payout methods' | trans %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{ "dashboard_index": ('Dashboard' | trans), "current":(pagetitle) }] %} {% include "Global/navigation.html.twig" with navigation %}
{{ pagetitle }}
{% set paymentGateways = repository.getPaymentGateways({"organizer": app.user.organizer.slug}).getQuery().getResult() %} {% set activeGateways = {} %} {% for gateway in paymentGateways %} {% if gateway.type in allowedGateways %} {% set activeGateways = activeGateways|merge({ (gateway.type): gateway.slug }) %} {% endif %} {% endfor %} {% for method in allowedGateways %} {% if envFileAccessor.getSetting("organizer_payout_" ~ method ~ "_enabled") == "1" %} {% set slug = activeGateways[method] ?? null %} {% endif %} {% endfor %}
{{ 'Payout method'|trans }} {{ 'Status'|trans }}
{{ method }} {% if slug %} {{ "Information provided"|trans }} {% else %} {{ "Information not provided"|trans }} {% endif %} {% if slug %} {{ "Edit"|trans }} {{ "Unset"|trans }} {% else %} {{ "Set"|trans }} {% endif %}
{% endblock %}