We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05ca110 commit 4f4421cCopy full SHA for 4f4421c
app/Filament/Widgets/StatsOverview.php
@@ -17,7 +17,7 @@ protected function getCards(): array
17
18
return [
19
Card::make('Latest download', fn (): string => ! blank($result) ? formatBits(formatBytesToBits($result->download)).'ps' : 'n/a')
20
- ->description('Tested at: '.optional($result)->created_at->timezone($settings->timezone)->format($settings->time_format))
+ ->description(! blank($result) ? 'Tested at: '.$result->created_at->timezone($settings->timezone)->format($settings->time_format) : 'No tests')
21
->icon('heroicon-o-download'),
22
Card::make('Latest upload', fn (): string => ! blank($result) ? formatBits(formatBytesToBits($result->upload)).'ps' : 'n/a')
23
->icon('heroicon-o-upload'),
0 commit comments