10 <div
class=
"block block-dashboard-orders">
15 <div
class=
"block-title order">
16 <strong><?=
__(
'Recent Orders') ?></strong>
18 <a
class=
"action view" href=
"<?= /* @escapeNotVerified */ $block->getUrl('sales/order/history') ?>">
19 <span><?=
__(
'View All') ?></span>
23 <div
class=
"block-content">
24 <?=
$block->getChildHtml() ?>
26 <div
class=
"table-wrapper orders-recent">
27 <table
class=
"data table table-order-items recent" id=
"my-orders-table">
28 <caption
class=
"table-caption"><?=
__(
'Recent Orders') ?></caption>
31 <th scope=
"col" class=
"col id"><?=
__(
'Order #') ?></th>
32 <th scope=
"col" class=
"col date"><?=
__(
'Date') ?></th>
33 <th scope=
"col" class=
"col shipping"><?=
__(
'Ship To') ?></th>
34 <th scope=
"col" class=
"col total"><?=
__(
'Order Total') ?></th>
35 <th scope=
"col" class=
"col status"><?=
__(
'Status') ?></th>
36 <th scope=
"col" class=
"col actions"><?=
__(
'Action') ?></th>
42 <td data-th=
"<?= $block->escapeHtml(__('Order #')) ?>" class=
"col id"><?=
$_order->getRealOrderId() ?></td>
43 <td data-th=
"<?= $block->escapeHtml(__('Date')) ?>" class=
"col date"><?=
$block->formatDate(
$_order->getCreatedAt()) ?></td>
44 <td data-th=
"<?= $block->escapeHtml(__('Ship To')) ?>" class=
"col shipping"><?=
$_order->getShippingAddress() ?
$block->escapeHtml(
$_order->getShippingAddress()->getName()) :
' ' ?></td>
45 <td data-th=
"<?= $block->escapeHtml(__('Order Total')) ?>" class=
"col total"><?=
$_order->formatPrice(
$_order->getGrandTotal()) ?></td>
46 <td data-th=
"<?= $block->escapeHtml(__('Status')) ?>" class=
"col status"><?=
$_order->getStatusLabel() ?></td>
47 <td data-th=
"<?= $block->escapeHtml(__('Actions')) ?>" class=
"col actions">
48 <a href=
"<?= /* @escapeNotVerified */ $block->getViewUrl($_order) ?>" class=
"action view">
49 <span><?=
__(
'View Order') ?></span>
51 <?php
if ($this->helper(
'Magento\Sales\Helper\Reorder')->canReorder(
$_order->getEntityId())) : ?>
52 <a href=
"#" data-post=
'<?php /* @escapeNotVerified */ echo 53 $this->helper(\Magento\Framework\Data\Helper\PostHelper::class) 54 ->getPostData($block->getReorderUrl($_order)) 55 ?>' class=
"action order">
56 <span><?=
__(
'Reorder') ?></span>
66 <div
class=
"message info empty"><span><?=
__(
'You have placed no orders.') ?></span></div>