$page_number,
'perPage' => 3,
'params' => ["class" => "table table-bordered", "border" => "2"],
'baseUrl' => "/admin/user",
'searchPrefix' => "",
]));
$table->columns([
'user_photo' => function ($data) {
return $data ? "" : "";
},
'created_at' => function ($data) {
if (!$data) {
return null;
}
return (new DateTimeImmutable($data))->format("d-m-Y");
},
'updated_at' => function ($data) {
if (!$data) {
return null;
}
return (new DateTimeImmutable($data))->format("d-m-Y");
}
]);
//$table->beforePrint(function () {
// return IconBtnCreateWidget::create(['url' => '/admin/user/create'])->run();
//});
$table->beforePrint(function () {
return "";
});
$table->addAction(function($row) {
return "";
});
$table->addAction(function($row) {
return "";
});
$table->addAction(function($row) {
return "";
});
$table->create();
?>
Custom Title
@php
$table->render();
@endphp