'status',
'status_id',
[
- 'attribute' => 'allowed_reserve',
- 'value' => function ($model) {
- return $model->allowed_reserve === 0 ? 'Нет' : 'Да';
- }
- ],
- [
- 'attribute' => 'allowed_closing',
+ 'label' => 'Действия',
+ 'format' => 'raw',
'value' => function ($model) {
- return $model->allowed_closing === 0 ? 'Нет' : 'Да';
+ $reserve = $model->allowed_reserve === 0 ? 'Нет' : 'Да';
+ $closing = $model->allowed_closing === 0 ? 'Нет' : 'Да';
+ $editing = $model->allowed_editing === 0 ? 'Нет' : 'Да';
+ $html = '<div class="d-flex flex-column align-items-end">';
+ $html .= '<div class="" >' . 'Резервирование:<strong > ' . $reserve . '</strong></div>';
+ $html .= '<div class="" >' . 'Закрытие:<strong > ' . $closing . '</strong></div>';
+ $html .= '<div class="" >' . 'Редактирование: <strong>' . $editing . '</strong></div>';
+ $html .= '</div>';
+ return $html;
}
],
+
'status_instruction:ntext',
[
'class' => ActionColumn::class,