How to set warning on header?
I required to display warning on header for free plan.
#alert #warning
Solution:Jump to solution
This might help:
```php
use Illuminate\Contracts\View\View;
use Filament\Support\Facades\FilamentView;
...
8 Replies
Is this even inside Filament panel?
Yes
Are those custom pages?
I guess you can inject that somewhere with a render hook. Maybe have a look at #impersonate which injects a banner, too, but at the top
Solution
This might help:
Then your view:
Okay, I will try. Thanks
It's working, but how to add warning icon and set to particular panel?
You can surround it with
if(Filament::getCurrentPanel()->getId() === 'somename'){
And for the icon - that's the simple Blade file, so you can place anything in thereOkay, sure. I will try. Thanks a lot
In this, it's take app as default. As I have two pannels app and admin. I want show alert to app only which for member or end user. This solution is not work for me in this scenario.
So I have handled this thing by middle ware.
Thanks a lot for idea and solutions.