Display Notifications for different panels

Friend, I am still working on my exports with ExportAction between panels and the system using tenant, the problem for these cases is that in addition to the complex configurations for these cases, I am also not being able to show the database notifications in the corresponding panel... for testing What I am doing, I am able to generate an Excel document but the notification does not appear in the company panel, I checked several things, I even added a script in the panel for databaseNotifications but it does not work for me.

->databaseNotifications(function (\Illuminate\Database\Eloquent\Builder $query) {
                // Asegurarte de usar el guard correcto
                if (auth()->guard('company')->check()) {
                    $user = auth()->guard('company')->user();

                    // Filtrar las notificaciones del usuario logeado en el guard 'company'
                    return $query->where('customer_id', $user->id)
                        ->where('notifiable_type', get_class($user));
                }

                // Por si no hay usuario autenticado, devolver un query vacío
                return $query->whereRaw('1 = 0');
            })

However, these do appear in the admin panel, the AdminPanel

Any idea what I might be missing or wrong?
Thank you very much friends!
image.png
image.png
image.png
Was this page helpful?