diff --git a/Filament/Widgets/Samples/OverlookWidget.php b/Filament/Widgets/Samples/OverlookWidget.php index 0275af12..906d0267 100644 --- a/Filament/Widgets/Samples/OverlookWidget.php +++ b/Filament/Widgets/Samples/OverlookWidget.php @@ -65,7 +65,7 @@ public function convertCount(string $number): string public function formatRawCount(string $number): string { - return number_format($number); + return number_format((float) $number); } /** @@ -101,8 +101,8 @@ public function getData(): array if ($res->canViewAny()) { return [ 'name' => $title, - 'raw_count' => $this->formatRawcount($rawCount), - 'count' => $this->convertCount($rawCount), + 'raw_count' => $this->formatRawcount((string) $rawCount), + 'count' => $this->convertCount((string) $rawCount), 'icon' => $customIcon ?: $res->getNavigationIcon(), 'url' => $res->getUrl('index'), ];