<?php
/** @var \Magento\Sales\Block\Order\Items $block */
$_order = $block->getOrder();
//echo $block->getLayout()->createBlock('Magetop\Advancepreview\Block\Order\CustomOrderView')->setTemplate('Magetop_Advancepreview::order/view/customer_items.phtml')->toHtml();
echo $block->getLayout()->createBlock('Magetop\Advancepreview\Block\Order\CustomOrderView')->setData(array('order'=>$_order))->setTemplate('Magetop_Advancepreview::order/view/custom-items.phtml')->toHtml();
?>
<div class="preview-custom-order-detail-grand-total">
    <?= $block->getChildHtml('order_totals') ?>
</div>


