{#show_action_process_payment.html.twig#} {#
{% if object.status == 'approved' %}

This payout has met the member approval threshold and is ready for disbursement.

Disburse via Mobile Money {% elseif object.status == 'processed' %}
This request was successfully paid on {{ object.payoutDate|date('d M Y') }}.
{% else %}

The payout is currently in the {{ object.status }} stage. It cannot be processed yet.

Approve Payout Request {% endif %}
#}
{% set progress = object.approvalProgress %} {% if object.status == 'approved' %}

This payout has met the member approval threshold ({{ progress.percentage|number_format(0) }}%) and is ready for disbursement.

Disburse via Mobile Money {% elseif object.status == 'processed' %}
This request was successfully paid on {{ object.payoutDate|date('d M Y') }}.
{% elseif object.status == 'pending_approval' or object.status == 'pending' %}
Member Approval Progress {{ progress.count }}/{{ progress.total }}
{% if progress.isMet %}

Threshold met ({{ progress.percentage|number_format(0) }}%). Admin can now finalize approval.

Finalize Admin Approval {% else %}
Voting in progress. Current approval is {{ progress.percentage|number_format(1) }}%. Threshold required: {{ object.approvalThresholdPercentage }}%.
{% endif %} {% else %}

The payout is currently in the {{ object.status }} stage.

{% endif %}