{*
* _             _       _
* | |____      _| | __ _| |__
* | '_ \ \ /\ / / |/ _` | '_ \
* | |_) \ V  V /| | (_| | |_) |
* |_.__/ \_/\_/ |_|\__,_|_.__/.
*
* @author    Bwlab di Luigi Massa <info@bwlab.it>
* @copyright since 2014 Bwlab
* @license   proprietary
*}
{** Widget richieste recesso nel dettaglio ordine BO (hook displayAdminOrdersView) *}
<div class="card mt-2">
    <div class="card-header">
        <h3 class="card-header-title">
            {l s='Withdrawal Requests' mod='bwwithdrawal'}
        </h3>
    </div>
    <div class="card-body">
        <table class="table table-sm">
            <thead>
                <tr>
                    <th>{l s='ID' d='Admin.Global'}</th>
                    <th>{l s='Status' d='Admin.Global'}</th>
                    <th>{l s='Date' d='Admin.Global'}</th>
                    <th>{l s='Deadline' mod='bwwithdrawal'}</th>
                </tr>
            </thead>
            <tbody>
                {foreach $admin_withdrawal_requests as $wr}
                <tr>
                    <td>#{$wr->getId()|intval}</td>
                    <td>{$wr->getStatus()|escape:'html':'UTF-8'}</td>
                    <td>{$wr->getDateAdd()->format('d/m/Y H:i')|escape:'html':'UTF-8'}</td>
                    <td>{$wr->getWithdrawalDeadline()->format('d/m/Y')|escape:'html':'UTF-8'}</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
    </div>
</div>
