"Название",
"author" => "Автор",
"version" => "Версия",
"description" => "Описание",
"installations" => "Установки",
"views" => "Просмотры"
];
$meta['params'] = ["class" => "table table-bordered"];
$meta['perPage'] = $per_page;
$meta['baseUrl'] = "/admin/module_shop_client";
$meta['currentPage'] = $page_number;
$meta['total'] = $module_count;
$info_to_table['meta'] = $meta;
$info_to_table['data'] = $modules_info;
$table = new ListJsonTable(json_encode($info_to_table, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
//$table->addAction(function ($row, $url) use ($moduleService){
// $slug = $row['slug'];
// if ($moduleService->isActive($slug)){
// $label = "Деактивировать";
// $btn_type = "warning";
// $btn = "$label";
//
// }
// else {
// $label = "Активировать";
// $btn_type = "primary";
// $btn = "$label";
// }
//
// return $btn;
//});
$table->addAction(\kernel\IGTabel\action_column\ViewActionColumn::class);
$table->addAction(\kernel\IGTabel\action_column\InstallActionColumn::class);
$table->create();
$table->render();