<?php
/**
 * Orders table-body
 *
 * This template can be overridden by copying it to yourtheme/wc-vendors/orders/table-body.php
 *
 * @author  WC Vendors
 * @package WCVendors/Templates/Orders/
 * @version 2.6.5 Fix security issues.
 * @since    2.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

if ( $count > 1 ) : ?>

<tr>

    <?php endif; ?>

    <?php if ( $item->get_formatted_meta_data() ) : ?>

    <td colspan="5">
        <?php echo wp_kses_post( wc_display_item_meta( $item ) ); ?>
    </td>

<td colspan="3">

<?php else : ?>

    <td colspan="100%">

        <?php endif; ?>

        <?php printf( /* translators: %d: quantity */ esc_html__( 'Quantity: %d', 'wc-vendors' ), esc_html( $item['qty'] ) ); ?>

        <?php if ( $refund && ! empty( $refund ) ) : ?>
            <br />
            <?php printf( /* translators: %s: refunded total */ esc_html__( 'Refunded total: %s', 'wc-vendors' ), wp_kses_post( wc_price( $refund['total'] ) ) ); ?>
        <?php endif; ?>

    </td>

    <?php if ( $count > 1 ) : ?>

</tr>

<?php endif; ?>
