<?php
/* @var $block \Mirasvit\Rma\Block\Rma\View\Items */
?>

<div><?= __('Order: %1', $block->getOrder()->getReceiptNumber()) ?>
<table  class="email-items" width="100%">
    <thead>
        <tr>
            <th width="30%" style="font-size:12px"><?= __("Product Name") ?></th>
            <th width="10%" style="font-size:12px;text-align: center;"><?= __("Qty") ?></th>
            <th width="20%" style="font-size:12px;text-align: center;"><?= __("Reason") ?></th>
            <th width="20%" style="font-size:12px;text-align: center;"><?= __("Condition") ?></th>
            <th width="20%" style="font-size:12px;text-align: center;"><?= __("Resolution") ?></th>
        </tr>
    </thead>
    <tbody>
    <?php
        /** @var \Mirasvit\Rma\Api\Data\OfflineItemInterface $item */
        foreach ($block->getOfflineItems() as $item): ?>
            <tr>
                <td valign="top" style="font-size:12px"><?= $item->getName() ?></td>
                <td valign="top" style="font-size:12px;text-align: center;"><?= $item->getQtyRequested() ?></td>
                <td valign="top" style="font-size:12px;text-align: center;"><?= $block->getReasonName($item) ?></td>
                <td valign="top" style="font-size:12px;text-align: center;"><?= $block->getConditionName($item) ?></td>
                <td valign="top" style="font-size:12px;text-align: center;"><?= $block->getResolutionName($item) ?></td>
            </tr>
        <?php
        endforeach;
        ?>
        </tbody>
</table>
<br/><br/>
