@@ -1,11 +1,11 @@ |
||
1 | 1 | <h3>Мои кошельки</h3> |
2 | 2 | <div class="row"> |
3 | 3 | <?php |
4 | - $blocked = App::$cur->money->getUserBlocks(); |
|
5 | - $wallets = App::$cur->money->getUserWallets(); |
|
6 | - $rates = Money\Currency\ExchangeRate::getList(); |
|
7 | - foreach ($wallets as $wallet) { |
|
8 | - ?> |
|
4 | + $blocked = App::$cur->money->getUserBlocks(); |
|
5 | + $wallets = App::$cur->money->getUserWallets(); |
|
6 | + $rates = Money\Currency\ExchangeRate::getList(); |
|
7 | + foreach ($wallets as $wallet) { |
|
8 | + ?> |
|
9 | 9 | <div class="col-sm-4"> |
10 | 10 | <h4><?= $wallet->currency->name(); ?></h4> |
11 | 11 | <b><?= $wallet->showAmount(); ?></b> <?= $wallet->currency->acronym(); ?><br /> |
@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | <h3>Уровни начислений</h3> |
13 | 13 | <ul> |
14 | 14 | <?php |
15 | - foreach ($reward->levels(['order' => ['level', 'asc']]) as $level) { |
|
16 | - ?> |
|
15 | + foreach ($reward->levels(['order' => ['level', 'asc']]) as $level) { |
|
16 | + ?> |
|
17 | 17 | |
18 | 18 | <li><?= !$level->level ? 'Личный' : $level->level; ?>. <?= $types[$level->type]['viewer']($level); ?></li> |
19 | 19 | <?php |
@@ -34,14 +34,14 @@ discard block |
||
34 | 34 | <h4 class="<?= $complete ? 'text-success' : 'text-danger'; ?>"><?= $condition->name(); ?></h4> |
35 | 35 | <ul> |
36 | 36 | <?php |
37 | - foreach ($condition->items as $item) { |
|
38 | - $itemComplete = $item->checkComplete(); |
|
39 | - switch ($item->type) { |
|
40 | - case 'event': |
|
37 | + foreach ($condition->items as $item) { |
|
38 | + $itemComplete = $item->checkComplete(); |
|
39 | + switch ($item->type) { |
|
40 | + case 'event': |
|
41 | 41 | $name = \Events\Event::get($item->value, 'event')->name(); |
42 | - break; |
|
43 | - } |
|
44 | - ?> |
|
42 | + break; |
|
43 | + } |
|
44 | + ?> |
|
45 | 45 | <li> |
46 | 46 | <b class="<?= $itemComplete ? 'text-success' : 'text-danger'; ?>"><?= $name; ?> <?= $item->recivedCount(); ?></b>/<?= $item->count; ?> <br /> |
47 | 47 | </li> |
@@ -23,10 +23,10 @@ |
||
23 | 23 | </td> |
24 | 24 | <td> |
25 | 25 | <?php |
26 | - foreach ($allowCurrencies as $allowCurrency) { |
|
27 | - $className = 'Money\MerchantHelper\\' . $merchant->object_name; |
|
28 | - $sum = $className::getFinalSum($pay, $allowCurrency); |
|
29 | - ?> |
|
26 | + foreach ($allowCurrencies as $allowCurrency) { |
|
27 | + $className = 'Money\MerchantHelper\\' . $merchant->object_name; |
|
28 | + $sum = $className::getFinalSum($pay, $allowCurrency); |
|
29 | + ?> |
|
30 | 30 | <b><?= $allowCurrency['currency']->name(); ?></b> |
31 | 31 | <a class="btn btn-primary" href ="/money/merchants/go/<?= $pay->id; ?>/<?= $merchant->id; ?>/<?= $allowCurrency['currency']->id; ?>">Оплатить <?= $sum; ?> <?= $allowCurrency['currency']->acronym(); ?></a> |
32 | 32 | <?php |
@@ -4,18 +4,18 @@ |
||
4 | 4 | <div class="alert alert-<?= $msg['status']; ?> alert-dismissable"> |
5 | 5 | <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
6 | 6 | <strong><?php |
7 | - switch ($msg['status']) { |
|
8 | - case 'success': |
|
7 | + switch ($msg['status']) { |
|
8 | + case 'success': |
|
9 | 9 | echo 'Успех!'; |
10 | - break; |
|
11 | - case 'danger': |
|
10 | + break; |
|
11 | + case 'danger': |
|
12 | 12 | case 'warning': |
13 | 13 | echo 'Внимание!'; |
14 | - break; |
|
15 | - default: |
|
14 | + break; |
|
15 | + default: |
|
16 | 16 | echo 'Информация.'; |
17 | - } |
|
18 | - ?></strong> <?= $msg['text']; ?> |
|
17 | + } |
|
18 | + ?></strong> <?= $msg['text']; ?> |
|
19 | 19 | </div> |
20 | 20 | <?php |
21 | 21 | } |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <div class="row"> |
2 | 2 | <div class="col-lg-12"> |
3 | 3 | <?php |
4 | - $dataManager = new Ui\DataManager('Apps\App', 'setup'); |
|
5 | - $dataManager->draw(); |
|
6 | - ?> |
|
4 | + $dataManager = new Ui\DataManager('Apps\App', 'setup'); |
|
5 | + $dataManager->draw(); |
|
6 | + ?> |
|
7 | 7 | </div> |
8 | 8 | <div class="col-lg-12"> |
9 | 9 | <?php |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <tfoot> |
2 | 2 | <tr> |
3 | 3 | <?php |
4 | - foreach ($table->cols as $col) { |
|
5 | - if (is_string($col)) { |
|
6 | - echo "<th>{$col}</th>"; |
|
7 | - } else { |
|
8 | - echo Html::el('th', !empty($col['attributes']) ? $col['attributes'] : [], $col['text']); |
|
9 | - } |
|
10 | - } |
|
11 | - ?> |
|
4 | + foreach ($table->cols as $col) { |
|
5 | + if (is_string($col)) { |
|
6 | + echo "<th>{$col}</th>"; |
|
7 | + } else { |
|
8 | + echo Html::el('th', !empty($col['attributes']) ? $col['attributes'] : [], $col['text']); |
|
9 | + } |
|
10 | + } |
|
11 | + ?> |
|
12 | 12 | </tr> |
13 | 13 | </tfoot> |
14 | 14 | \ No newline at end of file |