<th>Заказчик</th> <th>Желаемая дата доставки</th> <th>Статус</th> <th>Добавлен</th> </tr> </thead> <tbody> <? if ($orders && is_array($orders)): ?> <? foreach ($orders as $order): ?> <tr> <td><?php echo $order['id']; ?> </td> <td><?php echo Basket::getBasketId($order['body']); ?> </td> <td> <table class="table table-bordered table-striped prodList"> <tr> <th>Название</th> <th>Количество</th> </tr> <? $prodList = Basket::getProductsList($order['body']) ?> <? if ($prodList && is_array($prodList)): ?> <? foreach ($prodList as $key => $p):?> <tr> <td><a href="/admin/view/product/<?php echo $key; ?>
<? use app\helpers\Basket; use app\helpers\Helper; use app\helpers\Path; $order = $this->getData()[1]['order'][0]; $basketId = Basket::getBasketId($order['body']); $productList = Basket::getProductsList($order['body']); ?> <section class="content"> <div class="box"> <form action="editOrder" method="post" role="form"> <div class="box-body"> <p class="orderId">ID заказа: <span><b><?php echo $order['id']; ?> </b></span></p> <p>ID корзины: <b><?php echo $basketId; ?> </b></p> <a class="btn btn-default" href="#addProductInOrderPopup" title="Добавить товар в заказ"><span class="glyphicon glyphicon-plus" data-toggle="modal" data-target="#addProductInOrderPopup"></span></a> <label> Содержание заказа </label> <table class="table"> <tr> <th>ID</th> <th>Заголовок</th> <th>Количество</th> <th>Управление товаром</th> </tr>