{# This template renders the action button to manually process the final payout. It receives the 'object' variable, which is the FuneralDonationPayout entity. #} {% set payout_object = object %} {% set status = payout_object.status %}

Manual Payout Processing

{% if status == 'approved' %}

This request has been **approved** by an administrator. You may now proceed with the final payment processing.

Process Final Payout (Amount: {{ payout_object.approvedAmount|number_format(2) }} USD) {% elseif status == 'pending_approval' %}

This payout is currently **pending administrator approval**. The action button will appear once approved.

{% elseif status == 'processed' %}

This payout was **successfully processed** on {{ payout_object.payoutDate|date('Y-m-d H:i') }}.

{% elseif status == 'rejected' %}

This request was **rejected** and cannot be processed.

{% else %}

Current Status: {{ status|upper }}. Action cannot be performed in this state.

{% endif %}