<?php
/**
 * Dokan Withdraw Approved Request listing template
 *
 * @since   2.4
 *
 * @var $requests WeDevs\Dokan\Withdraw\Withdraw[]
 *
 * @package dokan
 */
?>

<table class="dokan-table dokan-table-striped">
    <thead class="dokan-show-thead">
    <tr>
        <th><?php esc_html_e( 'Amount', 'dokan-lite' ); ?></th>
        <th><?php esc_html_e( 'Method', 'dokan-lite' ); ?></th>
        <th><?php esc_html_e( 'Charge', 'dokan-lite' ); ?></th>
        <th><?php esc_html_e( 'Receivable', 'dokan-lite' ); ?></th>
        <th><?php esc_html_e( 'Date', 'dokan-lite' ); ?></th>
        <th><?php esc_html_e( 'Note', 'dokan-lite' ); ?></th>
    </tr>
    </thead>
    <tbody>

    <?php foreach ( $requests as $row ) { ?>
        <tr>
            <td><?php echo wp_kses_post( wc_price( $row->get_amount() ) ); ?></td>
            <td><?php echo esc_html( dokan_withdraw_get_method_title( $row->get_method(), $row ) ); ?></td>
            <td><?php echo wp_kses_post( wc_price( $row->get_charge() ) ); ?></td>
            <td><?php echo wp_kses_post( wc_price( $row->get_receivable_amount() ) ); ?></td>
            <td><?php echo esc_html( dokan_format_date( $row->get_date() ) ); ?></td>
            <td><?php echo wp_kses_post( $row->get_note() ); ?></td>
        </tr>
    <?php } ?>

    </tbody>
</table>
