<?php
/**
 * @var \App\Models\Withdraw $withdraw
 */

$withdrawal_methods = array_column(get_withdrawal_methods(), 'name', 'id');

$method = (isset($withdrawal_methods[$withdraw->method])) ?
    $withdrawal_methods[$withdraw->method] : $withdraw->method;

$amount = display_price_currency($withdraw->amount);
?>

<p><?= __('Hello') ?> <?= $withdraw->user->username ?>,</p>

<p><?= __('We just processed your withdraw request #:id for :amount via :method',
        ['id' => $withdraw->id, 'amount' => $amount, 'method' => $method]) ?></p>

<p><?= __('Happy Spending!') ?>

<p>
    <?= __('Thanks,') ?><br>
    <?= e(get_option('site_name')) ?>
</p>
