Skip to content

Commit 5ab3ee3

Browse files
committed
Update badge logic in NovaServiceProvider to use withBadgeIf for conditional display
1 parent 6539531 commit 5ab3ee3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Providers/NovaServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function boot()
157157
MenuItem::resource(DaftarSp2d::class),
158158
MenuItem::resource(Dipa::class),
159159
MenuItem::lens(MataAnggaranResource::class, MatchingAnggaran::class)
160-
->withBadge(fn () => 'New', 'danger', fn () => MataAnggaran::where('is_manual', true)->count('id') > 0),
160+
->withBadgeIf(fn () => '!', 'danger', fn () => MataAnggaran::where('is_manual', true)->count('id') > 0),
161161
])
162162
->collapsable()
163163
->icon('currency-dollar'),

0 commit comments

Comments
 (0)