$page_number, 'per_page' => 5, 'params' => ["class" => "table table-bordered", "border" => "2"], 'baseUrl' => "/admin/option", ])); $table->beforePrint(function () { return PrimaryBtn::create("Создать", "/admin/option/create")->fetch(); //return (new PrimaryBtn("Создать", "/admin/user/create"))->fetch(); }); $table->columns([ "status" => [ "value" => function ($cell) { return Option::getStatus()[$cell]; }] ]); $table->addAction(OptionViewActionColumn::class); $table->addAction(OptionEditActionColumn::class); $table->addAction(OptionDeleteActionColumn::class); $table->create(); $table->render();