$page_number, 'perPage' => 8, 'params' => ["class" => "table table-bordered", "border" => "2"], 'baseUrl' => "/admin/module_shop", ])); $table->columns([ 'status' => function ($data) { return ModuleShop::getStatus()[$data]; } ]); $table->beforePrint(function () { $btn = PrimaryBtn::create("Добавить модуль", "/admin/module_shop/module/create", width: '200px')->fetch(); $btn .= PrimaryBtn::create("Добавить ядро", "/admin/module_shop/kernel/create", '200px')->fetch(); return $btn; }); $table->addAction(ViewActionColumn::class); $table->addAction(DeleteActionColumn::class); $table->create(); $table->render();