?> <?php } else { ?> <?php $class = 'label-danger'; ?> <?php } ?> <span class="label label-sm <?php echo $class; ?> "> <?php echo CHtml::encode(Horders::gridStatusItem($lastOrderDataset->status)); ?> </span> </td> <td><?php echo CHtml::link(Yii::t('app', 'Просмотреть'), $this->createUrl('/admin/store/orders/view', ['id' => $lastOrderDataset->id]), ['target' => '_blank', 'class' => 'btn default btn-xs green-stripe']); ?> </td> </tr> <?php } ?> <?php } ?> </tbody>
$class = 'label-success'; ?> <?php } else { ?> <?php $class = 'label-danger'; ?> <?php } ?> <span class="label label-sm <?php echo $class; ?> "><?php echo CHtml::encode(Horders::gridStatusItem($order->status)); ?> </span> </td> <td> <?php if ((bool) $order->is_payed) { ?> <i class="fa fa-check font-green"></i> <?php } else { ?> <i class="fa fa-times font-red"></i> <?php } ?>
<th><?php echo CHtml::encode($horder->getAttributeLabel('is_payed')); ?> </th> <td><?php echo Horders::gridIsPayedItem($horder->is_payed); ?> </td> </tr> <tr> <th><?php echo CHtml::encode($horder->getAttributeLabel('status')); ?> </th> <td><?php echo Horders::gridStatusItem($horder->status); ?> </td> </tr> <tr> <th><?php echo CHtml::encode($horder->getAttributeLabel('store_delivery_types__id')); ?> </th> <td><?php echo $horder->deliveryType->name; ?> </td> </tr> <tr> <th><?php