How to set warning on header?

I required to display warning on header for free plan.

#alert #warning
image.png
Solution
This might help:
use Illuminate\Contracts\View\View;
use Filament\Support\Facades\FilamentView;
 
class AppServiceProvider extends ServiceProvider
{
    // ...
 
    public function boot(): void
    {
        FilamentView::registerRenderHook(
            'panels::page.start',
            fn (): View => view('warning-banner')
        );
    }
}


Then your view:

<div class="mt-3 px-4 py-2 bg-primary-500/10 text-danger-600">
    Sensitive orders.
</div>
Was this page helpful?