@@ 17-56 (lines=40) @@ | ||
14 | $this->title = Yii::t('cart', 'Order execution'); |
|
15 | ?> |
|
16 | ||
17 | <?php if (!empty($error)) : ?> |
|
18 | <div class="row"> |
|
19 | <div class="col-md-12"> |
|
20 | <div class="box box-danger box-solid"> |
|
21 | <div class="box-header with-border"> |
|
22 | <?= Html::tag('h3', '<i class="fa fa-exclamation-triangle"></i> ' . Yii::t('cart', 'Operations failed') . ': ' . Yii::t('cart', '{0, plural, one{# position} other{# positions}}', count($error))); ?> |
|
23 | </div> |
|
24 | <div class="box-body"> |
|
25 | <table class="table table-striped"> |
|
26 | <thead> |
|
27 | <tr> |
|
28 | <th class="text-center">#</th> |
|
29 | <th><?= Yii::t('cart', 'Description') ?></th> |
|
30 | <th class="text-right"><?= Yii::t('cart', 'Price') ?></th> |
|
31 | <th></th> |
|
32 | </tr> |
|
33 | </thead> |
|
34 | <tbody> |
|
35 | <?php |
|
36 | $no = 1; |
|
37 | foreach ($error as $exception) : |
|
38 | $item = $exception->position; |
|
39 | ?> |
|
40 | <tr> |
|
41 | <td class="text-center text-bold"><?= $no++ ?></td> |
|
42 | <td> |
|
43 | <?= $item->renderDescription() ?><br> |
|
44 | <?= $exception->getMessage() ?> |
|
45 | </td> |
|
46 | <td align="right" class="text-bold"><?= Yii::$app->formatter->asCurrency($item->cost, $item->getCurrency()) ?></td> |
|
47 | <td></td> |
|
48 | </tr> |
|
49 | <?php endforeach; ?> |
|
50 | </tbody> |
|
51 | </table> |
|
52 | </div> |
|
53 | </div> |
|
54 | </div> |
|
55 | </div> |
|
56 | <?php endif; ?> |
|
57 | ||
58 | ||
59 | <?php if (!empty($pending)) : ?> |
|
@@ 59-98 (lines=40) @@ | ||
56 | <?php endif; ?> |
|
57 | ||
58 | ||
59 | <?php if (!empty($pending)) : ?> |
|
60 | <div class="row"> |
|
61 | <div class="col-md-12"> |
|
62 | <div class="box box-warning box-solid"> |
|
63 | <div class="box-header with-border"> |
|
64 | <?= Html::tag('h3', '<i class="fa fa-exclamation-triangle"></i> ' . Yii::t('cart', 'Pending operations') . ': ' . Yii::t('cart', '{0, plural, one{# position} other{# positions}}', count($pending))); ?> |
|
65 | </div> |
|
66 | <div class="box-body"> |
|
67 | <table class="table table-striped"> |
|
68 | <thead> |
|
69 | <tr> |
|
70 | <th class="text-center">#</th> |
|
71 | <th><?= Yii::t('cart', 'Description') ?></th> |
|
72 | <th class="text-right"><?= Yii::t('cart', 'Price') ?></th> |
|
73 | <th></th> |
|
74 | </tr> |
|
75 | </thead> |
|
76 | <tbody> |
|
77 | <?php |
|
78 | $no = 1; |
|
79 | foreach ($pending as $exception) : |
|
80 | $item = $exception->position; |
|
81 | ?> |
|
82 | <tr> |
|
83 | <td class="text-center text-bold"><?= $no++ ?></td> |
|
84 | <td> |
|
85 | <?= $item->renderDescription() ?><br> |
|
86 | <?= $exception->getMessage() ?> |
|
87 | </td> |
|
88 | <td align="right" class="text-bold"><?= Yii::$app->formatter->asCurrency($item->cost, $item->getCurrency()) ?></td> |
|
89 | <td></td> |
|
90 | </tr> |
|
91 | <?php endforeach; ?> |
|
92 | </tbody> |
|
93 | </table> |
|
94 | </div> |
|
95 | </div> |
|
96 | </div> |
|
97 | </div> |
|
98 | <?php endif; ?> |
|
99 | ||
100 | <?php if (count($success)) : ?> |
|
101 | <div class="row"> |