columns([
'preview' => function ($data) {
return "";
}
]);
$table->addAction(function ($row, $url){
$path = $row['path'];
$active_admin_theme = \kernel\modules\option\service\OptionService::getItem('active_admin_theme');
$btn = "Активировать";
if ($path === $active_admin_theme){
$btn = "Активна";
}
return $btn;
});
$table->create();
$table->render();