© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Treebeard

Badge on content tabs

I have 3 content tabs on the top of my edit form, they are visible after adding
hasCombinedRelationManagerTabsWithContent()
hasCombinedRelationManagerTabsWithContent()
to my EditUser class.

My question is, can I add a badge to these tabs? I see that badges can be added to other types of tabs, but how would one go about adding a badge to content tabs?

My use case is, I'd like to add the number of debts and number of payments as badges.
Screenshot_2024-01-20_at_4.03.25_PM.png
Solution
A relation manager can have badges too yes, even if combined

protected static ?string $badge = 'NEW';

//or 

public static function getBadge(Model $ownerRecord, string $pageClass): ?string
{
    return 100;
    // return $ownerRecord->details->count();
    // return $ownerRecord->debts->count();
}

// or whatever
protected static ?string $badge = 'NEW';

//or 

public static function getBadge(Model $ownerRecord, string $pageClass): ?string
{
    return 100;
    // return $ownerRecord->details->count();
    // return $ownerRecord->debts->count();
}

// or whatever
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Badge count on relation manager tabs
FilamentFFilament / ❓┊help
11mo ago
navigations and tabs multiple badge ?
FilamentFFilament / ❓┊help
3y ago
Tabs Blade component content
FilamentFFilament / ❓┊help
3y ago
Tabs with different content
FilamentFFilament / ❓┊help
3y ago