| @@ 64-70 (lines=7) @@ | ||
| 61 | 'domain_tariff' => [ |
|
| 62 | 'attribute' => 'domain', |
|
| 63 | 'format' => 'raw', |
|
| 64 | 'value' => function (TariffProfile $model) { |
|
| 65 | if (empty($model->domain)) { |
|
| 66 | return ''; |
|
| 67 | } |
|
| 68 | ||
| 69 | return $this->tariffLink($model->domain, $model->tariff_names[$model->domain]); |
|
| 70 | }, |
|
| 71 | ], |
|
| 72 | 'certificate_tariff' => [ |
|
| 73 | 'attribute' => 'certificate', |
|
| @@ 75-81 (lines=7) @@ | ||
| 72 | 'certificate_tariff' => [ |
|
| 73 | 'attribute' => 'certificate', |
|
| 74 | 'format' => 'raw', |
|
| 75 | 'value' => function (TariffProfile $model) { |
|
| 76 | if (empty($model->certificate)) { |
|
| 77 | return ''; |
|
| 78 | } |
|
| 79 | ||
| 80 | return $this->tariffLink($model->certificate, $model->tariff_names[$model->certificate]); |
|
| 81 | }, |
|
| 82 | ], |
|
| 83 | 'svds_tariff' => [ |
|
| 84 | 'attribute' => 'svds', |
|