[ 'value' => function (EntryInterface $entry) { return ""; } ], 'name' => [ 'sort_column' => 'slug', 'wrapper' => ' #{value.id}{value.name}
{value.finish_at}
{value.category}', 'value' => [ 'id' => 'entry.id', 'finish_at' => 'entry.finish_at', 'name' => function (EntryInterface $entry) { if ($entry->getTitle()) { $value = " {entry.name} "; } else { $value = "" . trans("visiosoft.module.advs::view.unfinished") . ""; } return $value; }, 'category' => function (EntryInterface $entry, CategoryModel $categoryModel) { $category = $categoryModel->getCat($entry->cat1); if (!is_null($category)) return $category->name; } ], ], 'price' => [ 'wrapper' => '{{currency_format("{entry.price}","{entry.currency}")}}', 'class' => 'advs-price', ], 'country' => [ 'class' => 'text-center', 'wrapper' => '{value.city}
{value.country}
', 'value' => [ 'city' => function (EntryInterface $entry) { return $entry->getCity(); }, 'country' => 'country', ] ], 'created_by' => [ 'value' => 'entry.created_by.name', ], ]; if ($builder->isActiveView('advanced')) { unset($columns['created_by'], $columns['country']); $columns['is_get_adv'] = [ 'attributes' => [ 'html' => function (EntryModel $entry) { $checked = ($entry->is_get_adv) ? 'checked' : ''; return ''; } ], 'class' => 'advs-price', ]; $columns['standard_price'] = [ 'attributes' => [ 'html' => function (EntryModel $entry) { return ''; } ], 'class' => 'advs-price', ]; $columns['price']['attributes'] = [ 'html' => function (EntryModel $entry) { return ''; } ]; } $builder->setColumns($columns); } }