Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Notifications Tabs Laravel Package

zvizvi/filament-notifications-tabs

Adds Unread and All tabs with an unread-count badge to the Filament database notifications modal, plus per-notification delete and read/unread toggle actions. Configurable default tab and optional delete confirmation. For Filament v5 panels.

View on GitHub
Deep Wiki
Context7

Filament Relation Manager Repeater

Filament Notifications Tabs

Latest Version on Packagist Total Downloads

Adds tabs and per-notification actions to the Filament database notifications modal:

  • Unread / All tabs — filter the notifications list, with an unread-count badge on the Unread tab.
  • Per-notification actions — replaces the default X (close) button with a delete (trash) button and a toggle read/unread button.

Compatible with Filament v5 panels.

Installation

Install the package via Composer:

composer require zvizvi/filament-notifications-tabs:^0.0.2

Register the styles (Tailwind v4)

The modal view uses Tailwind utility classes, so Tailwind needs to scan this package's Blade files. Add a @source directive to your Filament theme CSS (e.g. resources/css/filament/admin/theme.css), then rebuild:

@source '../../../../vendor/zvizvi/filament-notifications-tabs/resources/views/**/*.blade.php';

Adjust the number of ../ to match the location of your theme file relative to vendor/.

Usage

Register the plugin in your panel provider. Database notifications must be enabled on the panel:

use Zvizvi\FilamentNotificationsTabs\FilamentNotificationsTabsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->databaseNotifications()
        ->plugins([
            FilamentNotificationsTabsPlugin::make(),
        ]);
}

Default tab

The modal opens on the Unread tab by default. To open on the All tab instead:

FilamentNotificationsTabsPlugin::make()
    ->defaultTab('all')

Confirm before delete

By default, clicking the delete button removes the notification immediately. To require Filament's native confirmation dialog first:

FilamentNotificationsTabsPlugin::make()
    ->confirmDelete()

Translations

The package ships with en and he translations. To customize them:

php artisan vendor:publish --tag=filament-notifications-tabs-translations

Views

To customize the modal view:

php artisan vendor:publish --tag=filament-notifications-tabs-views

License

The MIT License (MIT). Please see License File for more information.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel