<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

?>

<?php
/** @var \Magento\PaymentServicesPaypal\Block\SmartButtons\Review\Details $block */
/** @var \Magento\Framework\Escaper $escaper */
?>

<div id="details-reload" class="table-wrapper order-items cart">
    <table id="details-table" class="cart items data table table-magento-payments-review-items">
        <caption class="table-caption"><?= $escaper->escapeHtml(__('Items in Your Shopping Cart')) ?></caption>
        <thead>
        <tr>
            <th class="col name" scope="col"><?= $escaper->escapeHtml(__('Item')) ?></th>
            <th class="col price" scope="col"><?= $escaper->escapeHtml(__('Price')) ?></th>
            <th class="col qty" scope="col"><?= $escaper->escapeHtml(__('Qty')) ?></th>
            <th class="col subtotal" scope="col"><?= $escaper->escapeHtml(__('Subtotal')) ?></th>
        </tr>
        </thead>
            <?php foreach ($block->getItems() as $item) : ?>
                <?= $block->getItemHtml($item) ?>
            <?php endforeach ?>
        <tfoot class="opc-block-summary">
            <?= $block->getChildHtml('totals') ?>
        </tfoot>
    </table>
</div>
