card count

This commit is contained in:
Kavalar 2025-01-27 14:07:33 +03:00
parent 4b498c7fc6
commit 4692c70378

View File

@ -79,7 +79,7 @@ $table->columns([
]);
$table->beforePrint(function () use ($table) {
$count = $table->getCollection()->count();
$count = Card::all()->count();
$html = IconBtnCreateWidget::create(['url' => '/admin/card/create'])->run();
$html .= "<div>Всего записей: $count</div>";
return $html;