<?php

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

?><ul class="pricely_mini_cart_item_prices">
    <?php
    
    $allowed_html = Pricely_Main::get_instance()->get_allow_html();// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
    
    foreach ( $view_data[ 'prices' ] as $price_data ) {// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
        ?>
        <li class="pricely_mini_cart_item_prices_row">
            <?php
            if ( false !== $price_data[ 'qty' ] ) {
                ?>
                <span class="prly_mini_cart_item_prices_col_qty">
                    <span><?php echo esc_html( $price_data[ 'qty' ] ); ?></span>&times;
                </span>
                <?php
            }
            ?>
            <span class="prly_mini_cart_item_prices_col_price">
                <?php echo wp_kses( wc_price( $price_data[ 'new_price' ] ), $allowed_html ); ?>
            </span>

        </li>
        <?php
    }
    ?>
</ul>
